|
|
John, Wrong typed one parameter: Where you see "chmod a-rx /etc/resolv.conf" read "chmod a-wx /etc/resolv.conf" HTH, RSalles John Locke disse: > 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... > -- "A well-written program is its own heaven; a poorly-written program is its own hell." TAO of Programming - Book 4 ------------------------------------------------------- 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_id56&alloc_id438&opÌk _______________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |