Skip to contentSkip to conversation

DHCP on PocketPC port

Openvpn-devel Mathias Sundman 2 participants 4 messages Jun 20, 2006 – Jun 21, 2006

lore
Share & tools
lore
#0 lore raw

When pushing an IP to an OpenVPN client and using the DHCP feature in the TAP-Win32 driver to have it assigned to the windows client, I believe OpenVPN or the TAP-Win32 driver is blocking the DHCP requests from traversing the VPN tunnel. This is the behavior I'd expect as well.

Now, while testing the PocketPC port, I just realized that I recieved two IP addresses! One from the TAP-Win32 driver, pushed from the OpenVPN server, the correct one, but also one from my real DHCP server on the remote network. We're using TAP and bridging... So obviously the PocketPC port does not block these packets, even though the build-in DHCP server in the TAP driver is replying to the DHCP requests.

So, is this a bug in the PocketPC port of OpenVPN/TAP-Win32 or is this expected behaviour? Or is there simply no blocking feature in the WinXP TAP-Win32 driver either, but these O/S only care about the first DHCP server that it gets a reply from?

As a workaround, I just used iptables on my linux server to block forwarding of UDP67/68 packets over the bridge and the things worked just fine.

Signature · 4 lines
_____________________________________________________________
Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://openvpn.se/               / \   NO Word docs in e-mail
#1 lore raw

That's wild, and I haven't seen that behaviour with my bridging setup. I do use bridging and do have a DHCP server inside the LAN. I'll study the code to see if I introduced a bug though causing the DHCP packet to get forwarded even when it is processed. It's possible, and your workaround with the firewall rules tends to indicate that it is likely.

I do know many (most?) folks are using this configuration successfully -- if for no other reason than because it used to be broken and there were complaints at that time. It's possible that the problem is masked in the usual case and your device makes the problem visible. What device are you using?

Also, how are you determining that there are two addresses on the TAP device?

Quoted 50 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mathias Sundman
Sent: Tuesday, June 20, 2006 9:10 AM
To: [email protected]
Cc: Christer Lindell; Kenneth Karlsson
Subject: [Openvpn-devel] DHCP on PocketPC port

When pushing an IP to an OpenVPN client and using the DHCP feature in the
TAP-Win32 driver to have it assigned to the windows client, I believe OpenVPN or the TAP-Win32 driver is blocking the DHCP requests from traversing the VPN tunnel. This is the behavior I'd expect as well.

Now, while testing the PocketPC port, I just realized that I recieved two
IP addresses! One from the TAP-Win32 driver, pushed from the OpenVPN server, the correct one, but also one from my real DHCP server on the remote network. We're using TAP and bridging... So obviously the PocketPC
port does not block these packets, even though the build-in DHCP server in
the TAP driver is replying to the DHCP requests.

So, is this a bug in the PocketPC port of OpenVPN/TAP-Win32 or is this expected behaviour? Or is there simply no blocking feature in the
WinXP TAP-Win32 driver either, but these O/S only care about the first
DHCP server that it gets a reply from?

As a workaround, I just used iptables on my linux server to block forwarding of UDP67/68 packets over the bridge and the things worked just
fine.

--
_____________________________________________________________

Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://openvpn.se/               / \   NO Word docs in e-mail

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

#2 lore raw
Quoted 11 lines · Dave

That's wild, and I haven't seen that behaviour with my bridging setup. I do use bridging and do have a DHCP server inside the LAN. I'll study the code to see if I introduced a bug though causing the DHCP packet to get forwarded even when it is processed. It's possible, and your workaround with the firewall rules tends to indicate that it is likely.

I do know many (most?) folks are using this configuration successfully -- if for no other reason than because it used to be broken and there were complaints at that time. It's possible that the problem is masked in the usual case and your device makes the problem visible. What device are you using?

Qtek 2020i with Windows Mobile PocketPC 2003 SE.

Quoted 2 lines

Also, how are you determining that there are two addresses on the TAP device?

Viewing the "Net" tab on the TAP device.

I just realized we're not using the latest version of your port. Have you done any changes in the code that could/should affect this in the latest relases? We'll update anyway and let you know if it makes any difference.

Cheers // Mathias

Quoted 43 lines
Quoted 43 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mathias Sundman
Sent: Tuesday, June 20, 2006 9:10 AM
To: [email protected]
Cc: Christer Lindell; Kenneth Karlsson
Subject: [Openvpn-devel] DHCP on PocketPC port

When pushing an IP to an OpenVPN client and using the DHCP feature in the
TAP-Win32 driver to have it assigned to the windows client, I believe OpenVPN or the TAP-Win32 driver is blocking the DHCP requests from traversing the VPN tunnel. This is the behavior I'd expect as well.

Now, while testing the PocketPC port, I just realized that I recieved two
IP addresses! One from the TAP-Win32 driver, pushed from the OpenVPN server, the correct one, but also one from my real DHCP server on the remote network. We're using TAP and bridging... So obviously the PocketPC
port does not block these packets, even though the build-in DHCP server in
the TAP driver is replying to the DHCP requests.

So, is this a bug in the PocketPC port of OpenVPN/TAP-Win32 or is this expected behaviour? Or is there simply no blocking feature in the
WinXP TAP-Win32 driver either, but these O/S only care about the first
DHCP server that it gets a reply from?

As a workaround, I just used iptables on my linux server to block forwarding of UDP67/68 packets over the bridge and the things worked just
fine.

--
_____________________________________________________________

Mathias Sundman                  (^)   ASCII Ribbon Campaign
OpenVPN GUI for Windows           X    NO HTML/RTF in e-mail
http://openvpn.se/               / \   NO Word docs in e-mail
#3 lore raw
Quoted 2 lines

-----Original Message-----
From: Mathias Sundman [mailto:[email protected]...]

...

Quoted 14 lines
Quoted 14 lines

When pushing an IP to an OpenVPN client and using the DHCP feature in the TAP-Win32 driver to have it assigned to the windows client, I believe OpenVPN or the TAP-Win32 driver is blocking the DHCP requests from traversing the VPN tunnel. This is the behavior I'd expect as well.

Now, while testing the PocketPC port, I just realized that I recieved two IP addresses! One from the TAP-Win32 driver, pushed from the OpenVPN server, the correct one, but also one from my real DHCP server on the remote network. We're using TAP and bridging... So obviously the PocketPC
port does not block these packets, even though the build-in DHCP server in
the TAP driver is replying to the DHCP requests.

...

Quoted 8 lines
Quoted 1 line

What device are you using?

Qtek 2020i with Windows Mobile PocketPC 2003 SE.

Quoted 1 line

Also, how are you determining that there are two addresses

on the TAP

Quoted 1 line

device?

Quoted 8 lines

Viewing the "Net" tab on the TAP device.

I just realized we're not using the latest version of your port. Have you
done any changes in the code that could/should affect this in the latest
relases? We'll update anyway and let you know if it makes any difference.

...

It would have to be a really old one that you are using for it to potentially matter; the TAP driver was the first thing that I worked on, and the last significant fix (which was indeed in the DHCP area) was done in early May.

It's entirely possible that I broke this as I did have to make modifications throughout to accommodate PocketPC's driver model.