[Openvpn-devel] DHCP Renew failing on Windows
Hi James et al., I'm running OpenVPN quite successfully on 20 Windows XP roadwarrios, in order to access different networks. All the clients access a single VPN concentrator (2.0.9 on Debian Etch) using x.509 authentication and depending on a few server-side scripts they receive personalized routes and iptables rules. (Nb: the INPUT chain is empty and defaults to ACCEPT, only FORWARD rules are defined by the scripts). So far so good, the setup works flawlessly pretty much all the time. Almost two or three times a month though, one or two roadwarriors (I've not been able to extrapolate a pattern, it happens to random people), loses all the OpenVPN-pushed routes. The VPN connection is still up and running: if you add the routes manually it keeps on working without an itch. A reboot restores normal behaviour. The client in the logs receives the following two warnings in the System Event log: 1) Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 00FF97B41B3C. The following error occurred: The semaphore timeout period has expired. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server. 2) Your computer has automatically configured the IP address for the Network Card with network address 00FF97B41B3C. The IP address being used is 169.254.236.158. So it basically wasn't able to renew the DHCP lease, hence the dropping of the routes. (Note that the initiale DHCP works fine, the client receives its routes correctly. It's just that afterwards, I believe on the subsequent renew but I'm not 100% sure, it fails and it loses all the VPN-pushd routes). I've tried the tap-sleep option and raised the waiting time to no avail. I'll now try the --dhcp-renew and --dhcp-release options, but I suspect they won't help much. I hope I can get a packet trace of this problem, but so far I've never been able to reproduce under wireshark. Any tips/hints on how to nail down and debug this beast? thanks, Michele signature.asc Description: Digital signature
Re: [Openvpn-devel] DHCP Renew failing on Windows
Hello Michele, Most probably it happens when DHCP lase is expires and client trys renew DHCP address. Check DHCP lease lifetime, try decrease it to reproduce the issue. -- Best regards, Alexeymailto:ad...@dzer.ru Thursday, November 1, 2007, 1:14:08 PM, you wrote: MB> Hi James et al., MB> I'm running OpenVPN quite successfully on 20 Windows XP roadwarrios, in MB> order to access different networks. All the clients access a single VPN MB> concentrator (2.0.9 on Debian Etch) using x.509 authentication and MB> depending on a few server-side scripts they receive personalized routes MB> and iptables rules. (Nb: the INPUT chain is empty and defaults to MB> ACCEPT, only FORWARD rules are defined by the scripts). MB> So far so good, the setup works flawlessly pretty much all the time. MB> Almost two or three times a month though, one or two roadwarriors MB> (I've not been able to extrapolate a pattern, it happens to random people), MB> loses all the OpenVPN-pushed routes. MB> The VPN connection is still up and running: if you add the routes manually MB> it keeps on working without an itch. A reboot restores normal behaviour. MB> The client in the logs receives the following two warnings in the System MB> Event log: MB> 1) Your computer was not able to renew its address from the network (from MB>the DHCP Server) for the Network Card with network address 00FF97B41B3C. MB>The following error occurred: MB>The semaphore timeout period has expired. . Your computer will continue MB>to try and obtain an address on its own from the network address (DHCP) MB>server. MB> 2) Your computer has automatically configured the IP address for the MB>Network Card with network address 00FF97B41B3C. The IP address being MB>used is 169.254.236.158. MB> So it basically wasn't able to renew the DHCP lease, hence the dropping MB> of the routes. (Note that the initiale DHCP works fine, the client MB> receives its routes correctly. It's just that afterwards, I believe on MB> the subsequent renew but I'm not 100% sure, it fails and it loses all the MB> VPN-pushd routes). MB> I've tried the tap-sleep option and raised the waiting time to no avail. MB> I'll now try the --dhcp-renew and --dhcp-release options, but I suspect MB> they won't help much. MB> I hope I can get a packet trace of this problem, but so far I've never MB> been able to reproduce under wireshark. MB> Any tips/hints on how to nail down and debug this beast? MB> thanks, MB> Michele
Re: [Openvpn-devel] DHCP Renew failing on Windows
Hi Alexey, * Alexey Vdovin (ad...@dzer.ru) wrote: > Most probably it happens when DHCP lase is expires and client trys > renew DHCP address. > > Check DHCP lease lifetime, try decrease it to reproduce the issue. I've sniffed the network (although not in a problematic case) and I sometimes I'm able to see the DHCP NACK message, but then the client correctly asks for the new lease and receives the subsequent ACK. I'll toy with the lease time option (the default lease time is a year per default). I'll see if that helps. thanks, Michele signature.asc Description: Digital signature
Re: [Openvpn-devel] DHCP Renew failing on Windows
probably You'll want to disable auto configuring NIC with 169.254.X.X read about IPAutoconfigurationEnabled at http://support.microsoft.com/kb/220874 On 11/1/07, Michele Baldessari wrote: > > Hi Alexey, > > * Alexey Vdovin (ad...@dzer.ru) wrote: > > Most probably it happens when DHCP lase is expires and client trys > > renew DHCP address. > > > > Check DHCP lease lifetime, try decrease it to reproduce the issue. > > I've sniffed the network (although not in a problematic case) and I > sometimes I'm able to see the DHCP NACK message, but then the client > correctly asks for the new lease and receives the subsequent ACK. > > I'll toy with the lease time option (the default lease time is a year > per default). I'll see if that helps. > > thanks, > Michele > > -BEGIN PGP SIGNATURE- > Version: GnuPG v1.4.6 (GNU/Linux) > > iD8DBQFHKa4rofbulCQLTD0RAjudAJ0XrIVBzwcJjABts8XiesspHZDU2QCbBQTP > u1+cNAf3p2Gffhlkbk6L8OU= > =Nhfr > -END PGP SIGNATURE- > > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ___ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > >