I am testing the OpenVPN 2.0 beta 11 code on some of
our Unix platforms and have run into a problem with
OpenBSD 3.5.
Here's the output when running under Debian/Linux 3.1
# /usr/local/sbin/openvpn /etc/openvpn/openvpn.conf
Thu Sep 16 16:28:51 2004 OpenVPN 2.0_beta11 i686-pc-linux [SSL] [EPOLL]
built on Sep 16 2004
Thu Sep 16 16:28:51 2004 WARNING: file 'key.pem' is group or others
accessible
Thu Sep 16 16:28:51 2004 Control Channel MTU parms [ L:1541 D:138 EF:38
EB:0 ET:0 EL:0 ]
Thu Sep 16 16:28:51 2004 Data Channel MTU parms [ L:1541 D:1450 EF:41
EB:0 ET:0 EL:0 ]
Thu Sep 16 16:28:51 2004 Local Options hash (VER=V4): '3514370b'
Thu Sep 16 16:28:51 2004 Expected Remote Options hash (VER=V4):
'239669a8'
Thu Sep 16 16:28:51 2004 UDPv4 link local (bound): [undef]:5000
Thu Sep 16 16:28:51 2004 UDPv4 link remote: 128.100.56.140:5000
Thu Sep 16 16:28:51 2004 TLS: Initial packet from 128.100.56.140:5000,
sid=68c00f18 68d5583b
Thu Sep 16 16:28:51 2004 VERIFY OK: depth=1,
/C=CA/ST=Ontario/L=Toronto/O=University.of.Toronto/OU=CNS/CN=UTORvpn.CA/emailAddress=webmaster@...
Thu Sep 16 16:28:51 2004 VERIFY OK: depth=0,
/C=CA/ST=Ontario/O=University.of.Toronto/OU=CNS/CN=vpnserver/emailAddress=webmaster@...
Thu Sep 16 16:28:52 2004 Data Channel Encrypt: Cipher 'BF-CBC'
initialized with 128 bit key
Thu Sep 16 16:28:52 2004 Data Channel Encrypt: Using 160 bit message
hash 'SHA1' for HMAC authentication
Thu Sep 16 16:28:52 2004 Data Channel Decrypt: Cipher 'BF-CBC'
initialized with 128 bit key
Thu Sep 16 16:28:52 2004 Data Channel Decrypt: Using 160 bit message
hash 'SHA1' for HMAC authentication
Thu Sep 16 16:28:52 2004 Control Channel: TLSv1, cipher TLSv1/SSLv3
DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Sep 16 16:28:52 2004 [vpnserver] Peer Connection Initiated with
128.100.56.140:5000
Thu Sep 16 16:28:53 2004 SENT CONTROL [vpnserver]: 'PUSH_REQUEST'
(status=1)
Thu Sep 16 16:28:53 2004 PUSH: Received control message:
'PUSH_REPLY,route-method exe,route 128.100.0.0 255.255.0.0,route
142.151.0.0 255.255.0.0,route 142.150.0.0 255.255.0.0,route
128.100.56.140 255.255.255.255 net_gateway,inactive 120,route
142.150.248.1,ifconfig 142.150.248.6 142.150.248.5'
Thu Sep 16 16:28:53 2004 Options error: Unrecognized option or missing
parameter(s) in [PUSH-OPTIONS]:1: route-method
Thu Sep 16 16:28:53 2004 OPTIONS IMPORT: timers and/or timeouts modified
Thu Sep 16 16:28:53 2004 OPTIONS IMPORT: --ifconfig/up options modified
Thu Sep 16 16:28:53 2004 OPTIONS IMPORT: route options modified
Thu Sep 16 16:28:53 2004 TUN/TAP device tun0 opened
Thu Sep 16 16:28:53 2004 /sbin/ifconfig tun0 142.150.248.6 pointopoint
142.150.248.5 mtu 1500
Thu Sep 16 16:28:53 2004 /sbin/route add -net 128.100.0.0 netmask
255.255.0.0 gw 142.150.248.5
Thu Sep 16 16:28:53 2004 /sbin/route add -net 142.151.0.0 netmask
255.255.0.0 gw 142.150.248.5
Thu Sep 16 16:28:53 2004 /sbin/route add -net 142.150.0.0 netmask
255.255.0.0 gw 142.150.248.5
Thu Sep 16 16:28:53 2004 /sbin/route add -net 128.100.56.140 netmask
255.255.255.255 gw 128.100.103.1
Thu Sep 16 16:28:53 2004 /sbin/route add -net 142.150.248.1 netmask
255.255.255.255 gw 142.150.248.5
Thu Sep 16 16:28:53 2004 Initialization Sequence Completed
All is well.
Now when the same configuration files are used on the OpenBSD
machine:
# /usr/local/sbin/openvpn ./openvpn.conf
Thu Sep 16 16:30:32 2004 OpenVPN 2.0_beta11 i386-unknown-openbsd3.5 [SSL] built on Sep 16 2004
Thu Sep 16 16:30:32 2004 WARNING: file 'key.pem' is group or others accessible
Thu Sep 16 16:30:32 2004 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Sep 16 16:30:32 2004 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:0 ET:0 EL:0 ]
Thu Sep 16 16:30:32 2004 Local Options hash (VER=V4): '3514370b'
Thu Sep 16 16:30:32 2004 Expected Remote Options hash (VER=V4): '239669a8'
Thu Sep 16 16:30:32 2004 UDPv4 link local (bound): [undef]:5000
Thu Sep 16 16:30:32 2004 UDPv4 link remote: 128.100.56.140:5000
Thu Sep 16 16:30:32 2004 TLS: Initial packet from 128.100.56.140:5000, sid=e7dc71eb 58e51e0a
Thu Sep 16 16:30:33 2004 VERIFY OK: depth=1,
/C=CA/ST=Ontario/L=Toronto/O=University.of.Toronto/OU=CNS/CN=UTORvpn.CA/emailAddress=webmaster@...
Thu Sep 16 16:30:33 2004 VERIFY OK: depth=0,
/C=CA/ST=Ontario/O=University.of.Toronto/OU=CNS/CN=vpnserver/emailAddress=webmaster@...
Thu Sep 16 16:30:33 2004 Data Channel Encrypt: Cipher 'BF-CBC'
initialized with 128 bit key
Thu Sep 16 16:30:33 2004 Data Channel Encrypt: Using 160 bit message
hash 'SHA1' for HMAC authentication
Thu Sep 16 16:30:33 2004 Data Channel Decrypt: Cipher 'BF-CBC'
initialized with 128 bit key
Thu Sep 16 16:30:33 2004 Data Channel Decrypt: Using 160 bit message
hash 'SHA1' for HMAC authentication
Thu Sep 16 16:30:33 2004 Control Channel: TLSv1, cipher TLSv1/SSLv3
DHE-RSA-AES256-SHA, 1024 bit RSA
Thu Sep 16 16:30:33 2004 [vpnserver] Peer Connection Initiated with 128.100.56.140:5000
Thu Sep 16 16:30:34 2004 SENT CONTROL [vpnserver]: 'PUSH_REQUEST' (status=1)
Thu Sep 16 16:30:34 2004 PUSH: Received control message:
'PUSH_REPLY,route-method exe,route 128.100.0.0 255.255.0.0,route
142.151.0.0 255.255.0.0,route 142.150.0.0 255.255.0.0,route
128.100.56.140 255.255.255.255 net_gateway,inactive 120,route
142.150.248.1,ifconfig 142.150.248.6 142.150.248.5'
Thu Sep 16 16:30:34 2004 Options error: Unrecognized option or missing
parameter(s) in [PUSH-OPTIONS]:1: route-method
Thu Sep 16 16:30:34 2004 OPTIONS IMPORT: timers and/or timeouts modified
Thu Sep 16 16:30:34 2004 OPTIONS IMPORT: --ifconfig/up options modified
Thu Sep 16 16:30:34 2004 OPTIONS IMPORT: route options modified
Thu Sep 16 16:30:34 2004 OpenVPN ROUTE: net_gateway undefined -- unable to get default gateway from system
Thu Sep 16 16:30:34 2004 OpenVPN ROUTE: failed to parse/resolve route for host/network: 128.100.56.140
#
Any ideas?
--
Russell P. Sutherland Email: russ @ madhaus.cns.utoronto.ca
4 Bancroft Ave., Rm. 102 Voice: +1.416.978.0470
University of Toronto Fax: +1.416.978.6620
Toronto, ON M5S 1C1 WWW: http://madhaus.cns.utoronto.ca/~russ
CANADA
|