Skip to contentSkip to conversation

comments on beta12

Openvpn-devel julien Touche 2 participants 3 messages Oct 14, 2003

lore
Share & tools
lore
#0 lore raw

test between debian linux 2.4.21 <-> openbsd 3.4, beta12 on the 2 sides works well

one comment for openbsd, "dev tun" doesn't work:

Tue Oct 14 12:14:14 2003 6: /sbin/ifconfig tun delete
ifconfig: SIOCGIFFLAGS: Device not configured
Tue Oct 14 12:14:14 2003 7: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure Tue Oct 14 12:14:14 2003 8: /sbin/ifconfig tun 10.0.3.3 10.0.3.4 mtu 1255 netmask 255.255.255.255 up
ifconfig: SIOCGIFFLAGS: Device not configured
=> must precise tunX

test openbsd 3.4 <-> win2k, with dev tun (always beta12) works well too

one mistery: on openbsd side, i can't ping itself in the vpn, all other ping work.

Regards

Julien

note: always host2host conn.
note2: test are only ping ...

#1 lore raw
Quoted 5 lines · julien Touche

test between debian linux 2.4.21 <-> openbsd 3.4, beta12 on the 2 sides works well

one comment for openbsd, "dev tun" doesn't work:

Quoted 8 lines

Tue Oct 14 12:14:14 2003 6: /sbin/ifconfig tun delete
ifconfig: SIOCGIFFLAGS: Device not configured
Tue Oct 14 12:14:14 2003 7: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Tue Oct 14 12:14:14 2003 8: /sbin/ifconfig tun 10.0.3.3 10.0.3.4 mtu 1255 netmask 255.255.255.255 up
ifconfig: SIOCGIFFLAGS: Device not configured
=> must precise tunX

Right, but I don't think this behavior has changed since 1.4.x? You need to give an explicit unit number (i.e. --dev tun0) because OpenBSD wants the ifconfig to happen _before_ the tun open, therefore the tun open cannot be used (as other OSes allow) as a mechanism for cycling through tunX and finding the first free X.

Take a look at the ifconfig_order function in tun.h. It tells OpenVPN whether the ifconfig should come before or after the tun open.

Windows is the only other OS besides OpenBSD which likes the ifconfig before the tun open. And if you want --dev tun (without unit number) to work on OpenBSD, you need to define a special case for OpenBSD in guess_tuntap_dev().

Quoted 5 lines

test openbsd 3.4 <-> win2k, with dev tun (always beta12) works well too

one mistery: on openbsd side, i can't ping itself in the vpn, all other ping work.

Not sure about that -- it would be handled by the tun driver on OpenBSD. OpenVPN never sees the packet when the local endpoint is pinged.

James

#2 lore raw
Quoted 1 line · James Yonan

Right, but I don't think this behavior has changed since 1.4.x? You need to

sorry, i was thinking all unix could call "dev tun" or "dev tap". not a real pb.

Quoted 2 lines

Not sure about that -- it would be handled by the tun driver on OpenBSD. OpenVPN never sees the packet when the local endpoint is pinged.

i think this too, but was a comment.

in all case, openvpn 1.5 will rock :)

Regards

Julien