[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] openvpn udp gives error1


  • Subject: [Openvpn-users] openvpn udp gives error1
  • From: "Dave" <dmehler26@xxxxxxxxxx>
  • Date: Mon, 1 May 2006 20:53:10 -0400

Hello,
I've got two freebsd 6.0 boxes on different networks and i'm trying to bring them together using openvpn. If i use proto tcp everything works fine, use udp and i get an error code 1. The openvpn server is a natted box if that makes any difference. I'm using the static-key minihowto for testing and simplicity, i'll worry about ssl when i have basic functionality going. The specific msgs are below:


openvpn --config openvpn.conf
Mon May 1 20:57:04 2006 OpenVPN 2.0.6 i386-portbld-freebsd6.0 [SSL] [LZO] built on Apr 9 2006
Mon May 1 20:57:04 2006 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
Mon May 1 20:57:04 2006 LZO compression initialized
Mon May 1 20:57:06 2006 gw xx.xxx.xxx.x
Mon May 1 20:57:06 2006 TUN/TAP device /dev/tun0 opened
Mon May 1 20:57:06 2006 /sbin/ifconfig tun0 10.8.0.2 10.8.0.1 mtu 1500 netmask 255.255.255.255 up
add net 192.168.0.0: gateway 10.8.0.1
Mon May 1 20:57:06 2006 UDPv4 link local (bound): [undef]:1194
Mon May 1 20:57:06 2006 UDPv4 link remote: xx.xx.xx.xxx:1194
Mon May 1 20:57:06 2006 write UDPv4: Operation not permitted (code=1)


cat openvpn.conf
dev tun
remote xx.xx.xx.xxx 1194
proto udp
ifconfig 10.8.0.2 10.8.0.1
secret static.key
comp-lzo
keepalive 10 60
ping-timer-rem
persist-tun
persist-key
#user nobody
#group nobody
#daemon
route 192.168.0.0 255.255.255.0

I had to remove the user and group nobody lines, i was getting an error msg about only root can alter the routing table, which is why clientside i have those lines commented, i did not see any of this going tcp.
Any help appreciated.
Thanks.
Dave.



______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-05/msg00009.html on line 216

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-05/msg00009.html on line 216