Skip to contentSkip to conversation

OpenVPN 2.0-beta3 released

Openvpn-devel James Yonan 5 participants 8 messages Jun 5, 2004 – Jun 7, 2004

lore
Share & tools
lore
#0 lore raw

Change Log:

2004.06.05 -- Version 2.0-beta3

* More changes to TAP-Win32 driver's INF file which affects the placement of the driver in the Windows device namespace. This is done to work around an apparent bug in Windows when short HWIDs are used, and will also ease the upgrade from 1.x to 2.0 by reducing the chances that a reboot will be needed on upgrade. Like beta2, this upgrade will delete existing TAP-Win32 interfaces, and reinstall a single new interface with default properties.
* Major rewrite of I/O event wait layer in the style of libevent. This is a precursor to TCP support in --mode server.
* New feature: --status. Outputs a SIGUSR2-like status summary to a given file, updated once per n seconds. The status file is comma delimited for easy machine parsing.
* --ifconfig-pool now remembers common names and will try to assign a consistent IP to a given common name. Still to do: persist --ifconfig-pool memory across restarts by saving state in file.
* Fixed bug in event timer queue which could cause recurring timer events such as --ping to not correctly schedule again after firing. This in turn would cause spurrious ping restarts and possible connection outages. Thanks to Denis Vlasenko for tracking this down.
* Possible fix to reported bug where --daemon argument was not printing to syslog correctly after restart.
* Fixed bug where pulling --route or --dhcp-option directives from a server would problematically interact with --persist-tun on the client.
* Updated contrib/multilevel-init.patch (Farkas Levente).
* Added RPM build option to .spec and .spec.in files to optionally disable LZO inclusion (Ian Pilcher).
* The latest MingW runtime and headers define 'ssize_t', so a patch is needed (Gisle Vanem).

James

#1 lore raw

[Openvpn-devel] beta3 client returned incorrect IP with ping.

Hi,

I just have the beta3 client and server tested with the --mode server configuration. When I tried to ping a remote internal network address, the ping command (at winxp) returned an incorrect network from the server with TTL expired... the server config is:
# OpenVPN 2 - Server configuration file
dev tap
port 5000
mode server
ifconfig 10.8.0.1 255.255.255.0
ifconfig-pool 10.8.0.4 10.8.0.255
tls-server
ca /root/my-openvpn-keys/ca.crt
cert /root/my-openvpn-keys/deception.crt
key /root/my-openvpn-keys/deception.key
dh /root/my-openvpn-keys/dh1024.pem daemon
###log-append /var/log/openvpn/openvpn.log
##log /var/log/openvpn/openvpn.log
writepid /var/run/openvpn.pid
#ping 20
ping-restart 10
#ping-exit 600
push "ping 10"
push "ping-restart 10"
push "route-gateway 10.8.0.1"
push "route 192.168.4.0 255.255.255.0"
cipher aes-128-cbc
comp-lzo
#inactive 600
user nobody
group nogroup
verb 1
mute 4

The netstat -rn at server is:

Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.1.254      UGS         0        0    em0
10.8/24            link#8             UC          0        0   tap0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.1          link#1             UC          0        0    em0
192.168.1.129      00:09:6b:8d:b2:67  UHLW        0     2499    em0   1198
192.168.1.254      00:02:b3:0b:3c:d1  UHLW        1     2619    em0   1134
192.168.1.255      ff:ff:ff:ff:ff:ff  UHLWb       0       25    em0
192.168.4          link#2             UC          0        0   fxp0
192.168.4.255      ff:ff:ff:ff:ff:ff  UHLWb       0       25   fxp0

result of ifconfig -a at srever is:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

       options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING>
       inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
       inet6 fe80::20e:cff:fe05:8229%em0 prefixlen 64 scopeid 0x1
       ether 00:0e:0c:05:82:29
       media: Ethernet autoselect (10baseT/UTP <half-duplex>)
       status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
       options=b<RXCSUM,TXCSUM,VLAN_MTU>
       inet 192.168.4.1 netmask 0xffffff00 broadcast 192.168.4.255
       inet6 fe80::202:b3ff:febb:a7a5%fxp0 prefixlen 64 scopeid 0x2
       ether 00:02:b3:bb:a7:a5
       media: Ethernet autoselect (none)
       status: no carrier
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
       inet6 fe80::2bd:bff:fef9:0%tap0 prefixlen 64 scopeid 0x8
       inet 10.8.0.1 netmask 0xffffff00 broadcast 10.8.0.255
       ether 00:bd:0b:f9:00:00
       Opened by PID 17984

At the winxp machine, ipconfig returned correct IP address 10.8.0.4, and netstat -rn at winxp seems to be normal too.
only when I ping 192.168.4.1 from winxp, it returned 10.31.0.1. I also noticed that the tap-win device is shown "plug"/"unpug" every 10 min, might be this is caused by the ping 10 option in the server script.

What should be the correct confnig for the beta3 now?

Thanks
Sam

#2 lore raw
In reply to James Yonan
Quoted 6 lines · --Am Sonntag, 6. Juni 2004 01:35 +0000 James Yonan <[email protected]...> schrieb:

2004.06.05 -- Version 2.0-beta3

* New feature: --status. Outputs a SIGUSR2-like status summary to a given file, updated once per n seconds. The status file is comma delimited for easy machine parsing.

Is there any change to get this option in 1.6x? Maybe you accept a backport diff to add this feature to 1.61?

--
Claas Hilbrecht
http://www.jucs-kramkiste.de

#3 lore raw

[Openvpn-devel] Still Assertion failed at event.c:399 (was Re: [Openvpn-users] OpenVPN 2.0-beta3 released

In reply to James Yonan

I still have my assertion error with openvpn beta3, just much sooner, and it is a different place. The server is still linux, and the client is still macosx. I will go and test windows in a few seconds.

[Jon-Bendtsens-computer:~/openvpn-2.0_beta3] jonbendt% ./openvpn --config ../etc/openvpn/client.conf
...

Mon Jun  7 11:21:31 2004 OpenVPN 2.0_beta3 powerpc-apple-darwin7.4.0 [SSL] [LZO] built on Jun  7 2004
Mon Jun  7 11:21:31 2004 WARNING: file 'sample-keys/client.key' is group or others accessible
Mon Jun  7 11:21:31 2004 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Mon Jun  7 11:21:31 2004 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:0 ET:0 EL:0 ]
Mon Jun  7 11:21:31 2004 Local Options String: 'V3,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Mon Jun  7 11:21:31 2004 Expected Remote Options String: 'V3,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Mon Jun  7 11:21:31 2004 Local Options hash (VER=V3): 'a0f1c7ed'
Mon Jun  7 11:21:31 2004 Expected Remote Options hash (VER=V3): 'b319fa3e'
Mon Jun  7 11:21:31 2004 Socket Buffers: R=[42080->65536] S=[9216->65536]
Mon Jun  7 11:21:31 2004 UDPv4 link local (bound): [undef]:5000
Mon Jun  7 11:21:31 2004 UDPv4 link remote: 192.168.119.135:5000
Mon Jun  7 11:21:31 2004 TLS: Initial packet from 192.168.119.135:5000, sid=1ce6aa53 b7120113
Mon Jun  7 11:21:31 2004 Assertion failed at event.c:399
Mon Jun  7 11:21:31 2004 Exiting

It makes no difference if i specify the local address, the client.conf file looks like this:

[Jon-Bendtsens-computer:~/openvpn-2.0_beta3] jonbendt% less ../etc/openvpn/client.conf
#########################################
# Sample client-side OpenVPN config file

# for connecting to multi-client server.
#
# The server can be pinged at 10.8.0.1.
#
# This configuration can be used by multiple
# clients, however each client should have
# its own cert and key files.
#
# tun-style tunnel

port 5000
dev tun0
remote aragorn

# TLS parms

tls-client
ca sample-keys/tmp-ca.crt
cert sample-keys/client.crt
key sample-keys/client.key

# This parm is required for connecting

# to a multi-client server.  It tells
# the client to accept options which
# the server pushes to us.
pull

verb 4

and the server:
########################################
# Sample OpenVPN config file for

# multi-client udp server
#
# tun-style tunnel

port 5000
dev tun

# TLS parms

tls-server
ca sample-keys/tmp-ca.crt
cert sample-keys/server.crt
key sample-keys/server.key
dh sample-keys/dh1024.pem

# Tell OpenVPN to be a multi-client udp server
mode server

# openvpn data are not swapped to disk
#mlock
# allow clients to connect to each other faster
#client-to-client

# The server's virtual endpoints
ifconfig 10.8.0.1 10.8.0.2

# Pool of /30 subnets to be allocated to clients.
# When a client connects, an --ifconfig command

# will be automatically generated and pushed back to
# the client.
ifconfig-pool 10.8.0.4 10.8.0.255

# Push route to client to bind it to our local

# virtual endpoint.
push "route 10.8.0.1 255.255.255.255"

# Delete client instances after some period

# of inactivity.
inactive 600
# ping once every minute when there is no trafic
ping 60

# Route the --ifconfig pool range into the
# OpenVPN server.
route 10.8.0.0 255.255.255.0

# The server doesn't need privileges
user nobody
group nogroup

JonB

#4 lore raw

[Openvpn-devel] Re: Still Assertion failed at event.c:399 (was Re: [Openvpn-users] OpenVPN 2.0-beta3 released

Den 7. jun 2004, kl. 11:33, skrev Jon Bendtsen:

Quoted 2 lines

I still have my assertion error with openvpn beta3, just much sooner, and it is a different place. The server is still linux, and the client is still macosx. I will go and test windows in a few seconds.

The windows works just like it should. I dont get any assertion errors.

JonB

#6 lore raw
In reply to James Yonan
Quoted 4 lines · James Yonan

* New feature: --status. Outputs a SIGUSR2-like status summary to a given file, updated once per n seconds. The status file is comma delimited for easy machine parsing.

With me, the file has setuid, setgid and sticky bits set. Is that intended?

Rainer

Signature · 3 lines
To me, women are like elephants: I like to look at them,
but I wouldn't want to own one.
                                           (W.C. Fields)
#5 lore raw

[Openvpn-devel] Re: Still Assertion failed at event.c:399 (was Re: [Openvpn-users] OpenVPN 2.0-beta3 released

In reply to Jon Bendtsen

Jon,

Have you considered the possibility that there might be breakage in your compilation environment, such as a mismatch between header files and shared libraries?

I am saying this because I haven't seen any other reports of similar assertion failures. If you are the only one seeing the problem, there must be something that is unique about your particular configuration.

Do you get assertion failures from pre-built executables, such as from the Windows install?

James

Quoted 130 lines · Jon Bendtsen

I still have my assertion error with openvpn beta3, just much sooner, and it is a different place.
The server is still linux, and the client is still macosx. I will go and test windows in a few seconds.

[Jon-Bendtsens-computer:~/openvpn-2.0_beta3] jonbendt% ./openvpn --config ../etc/openvpn/client.conf
...
Mon Jun 7 11:21:31 2004 OpenVPN 2.0_beta3 powerpc-apple-darwin7.4.0 [SSL] [LZO] built on Jun 7 2004
Mon Jun 7 11:21:31 2004 WARNING: file 'sample-keys/client.key' is group or others accessible
Mon Jun 7 11:21:31 2004 Control Channel MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0 EL:0 ]
Mon Jun 7 11:21:31 2004 Data Channel MTU parms [ L:1541 D:1450 EF:41 EB:0 ET:0 EL:0 ]
Mon Jun 7 11:21:31 2004 Local Options String: 'V3,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Mon Jun 7 11:21:31 2004 Expected Remote Options String: 'V3,dev-type tun,link-mtu 1541,tun-mtu 1500,proto UDPv4,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Mon Jun 7 11:21:31 2004 Local Options hash (VER=V3): 'a0f1c7ed' Mon Jun 7 11:21:31 2004 Expected Remote Options hash (VER=V3):
'b319fa3e'
Mon Jun 7 11:21:31 2004 Socket Buffers: R=[42080->65536] S=[9216->65536]

Mon Jun  7 11:21:31 2004 UDPv4 link local (bound): [undef]:5000
Mon Jun  7 11:21:31 2004 UDPv4 link remote: 192.168.119.135:5000
Mon Jun  7 11:21:31 2004 TLS: Initial packet from 192.168.119.135:5000, 

sid=1ce6aa53 b7120113
Mon Jun 7 11:21:31 2004 Assertion failed at event.c:399 Mon Jun 7 11:21:31 2004 Exiting

It makes no difference if i specify the local address, the client.conf file looks like this:

[Jon-Bendtsens-computer:~/openvpn-2.0_beta3] jonbendt% less ../etc/openvpn/client.conf
#########################################
# Sample client-side OpenVPN config file

# for connecting to multi-client server.
#
# The server can be pinged at 10.8.0.1.
#
# This configuration can be used by multiple
# clients, however each client should have
# its own cert and key files.
#
# tun-style tunnel

port 5000
dev tun0
remote aragorn

# TLS parms

tls-client
ca sample-keys/tmp-ca.crt
cert sample-keys/client.crt
key sample-keys/client.key

# This parm is required for connecting

# to a multi-client server.  It tells
# the client to accept options which
# the server pushes to us.
pull

verb 4

and the server:
########################################
# Sample OpenVPN config file for

# multi-client udp server
#
# tun-style tunnel

port 5000
dev tun

# TLS parms

tls-server
ca sample-keys/tmp-ca.crt
cert sample-keys/server.crt
key sample-keys/server.key
dh sample-keys/dh1024.pem

# Tell OpenVPN to be a multi-client udp server
mode server

# openvpn data are not swapped to disk
#mlock
# allow clients to connect to each other faster
#client-to-client

# The server's virtual endpoints
ifconfig 10.8.0.1 10.8.0.2

# Pool of /30 subnets to be allocated to clients.
# When a client connects, an --ifconfig command

# will be automatically generated and pushed back to
# the client.
ifconfig-pool 10.8.0.4 10.8.0.255

# Push route to client to bind it to our local

# virtual endpoint.
push "route 10.8.0.1 255.255.255.255"

# Delete client instances after some period

# of inactivity.
inactive 600
# ping once every minute when there is no trafic
ping 60

# Route the --ifconfig pool range into the
# OpenVPN server.
route 10.8.0.0 255.255.255.0

# The server doesn't need privileges
user nobody
group nogroup

JonB

#7 lore raw
In reply to Rainer Sokoll
Quoted 9 lines · Rainer Sokoll
Quoted 4 lines · James Yonan

* New feature: --status. Outputs a SIGUSR2-like status summary to a given file, updated once per n seconds. The status file is comma delimited for easy machine parsing.

With me, the file has setuid, setgid and sticky bits set. Is that intended?

No, that looks like a bug -- I will fix in beta4.

James