[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] DHCP and road warrior Linux


  • Subject: [Openvpn-users] DHCP and road warrior Linux
  • From: John Locke <mail@xxxxxxxxxxxx>
  • Date: Tue, 02 Mar 2004 14:38:28 -0800

Hello, all,

This is more a Linux networking issue than strictly OpenVPN, but I'm
sure Linux laptop users will run into it.

Here's the basic setup:

* Mandrake 9.2 Linux laptop, connecting directly to a variety of
networks, usually Wi-fi.

* Using OpenVPN to connect to a Mandrake 9.1 workstation behind a
firewall, using a routed tun connection. Trying to use a DNS server
behind the firewall to have access to an internal domain.

The problem: the wi-fi connection I'm using right now has a lease time
of 120 seconds. Two minutes. Every two minutes, /etc/resolv.conf gets
refreshed with the stupid service's name servers.

Right now I'm getting by in a crippled way by running a little shell
script from cron every minute that rewrites /etc/resolv.conf with my LAN
name servers, and deleting the crontab when I close the connection, but
there has to be a better way...

So anybody have a tip about temporarily stopping DHCP updates to
/etc/resolv.conf, preferably only while the tunnel is up? So far, this
is looking like one case where Windows works better--keeping separate
DNS settings for each interface...

Everything else works really well.

Cheers,
-- 
John Locke
http://freelock.com

P.S. OpenVPN has a few pages devoted to it in my upcoming book, "Open
Source solutions for small business problems," coming to a bookstore
near you in May...



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users