From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Hohdk-00085o-6F for garchives@archives.gentoo.org; Thu, 17 May 2007 15:11:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4HFABmS009277; Thu, 17 May 2007 15:10:11 GMT Received: from mail18.bluewin.ch (mail18.bluewin.ch [195.186.19.64]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4HF4SNB002261 for ; Thu, 17 May 2007 15:04:29 GMT Received: from dmj.nu (62.203.228.97) by mail18.bluewin.ch (Bluewin 7.3.121) id 4649A0200007637D for gentoo-user@lists.gentoo.org; Thu, 17 May 2007 15:04:28 +0000 Received: from queen.dmj.nu (queen.dmj.nu [192.168.1.11]) by dmj.nu with esmtp; Thu, 17 May 2007 17:04:27 +0200 id 0000000000002996.00000000464C6EFB.00001B4C From: Dan Johansson To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started Date: Thu, 17 May 2007 17:04:18 +0200 User-Agent: KMail/1.9.5 References: <200705171608.07447.Dan.Johansson@dmj.nu> <20070517093701.11b0d0af@pascal.spore.ath.cx> In-Reply-To: <20070517093701.11b0d0af@pascal.spore.ath.cx> X-message-flag: Using Microsoft software might be a security risk Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1986936.3ZWJh637UT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705171704.25324.Dan.Johansson@dmj.nu> X-Archives-Salt: 5ac632fe-a947-4c07-a9d4-72c9a34259d1 X-Archives-Hash: 2b61da1478b7f28e9588160ae2288dbf --nextPart1986936.3ZWJh637UT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 17 May 2007 16:37, Dan Farrell wrote: > On Thu, 17 May 2007 16:08:00 +0200 > > Dan Johansson wrote: > > I'm having some trouble with dhcpcd and CiscoVPN. This is what I do > > and what's happening. > > > > Computer starts and brings up eth1 (Wireless interface) > > dhcpcd starts and gets IP, GW, resolv.conf information (wich is > > correct at this time) > > cisco-vpnclient-starts and I get a new interface cipsec0 with "VPN"-IP > > the vpn-client also changes the default-gw and resolv.conf > > I can now do dnslookups for the hosts in the company network > > (resolv.conf is the on from the company). > > After a few minutes resolv.conf gets overwritten with the dhcpcd > > version, and I can no longer do any lookups for hosts in the company > > network, I can still connect to the hosts using IP. > > Any suggestions on how to make dhcpcd not to override the resolv.conf > > from the cisco-vpn-client? > > Dhcpcd has an option for that, i believe it's -R. for example, on this > diskless router the dhcpcd on eth1 can't rewrite resolv.conf or the > > netboot will fail: > >>>FROM conf.d/net: > | > | config_eth1=3D("dhcp") > | dhcpcd_eth1=3D("-R") > > However, you may need to find some way to get that information filled > out with your corporate intranet info before you use the vpn. Thanks for the suggestion, I allready know about -R but I need dhcpcd to se= t=20 resolv.conf before the vpnclient starts to get the correct information for= =20 the network I'm on (not always using VPN). =2D-=20 Dan Johansson, *************************************************** This message is printed on 100% recycled electrons! *************************************************** --nextPart1986936.3ZWJh637UT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGTG7zF+s3Ki+4lK0RAtuuAKDnrsYYF/S+ogwWvaT4OdmXf8R13ACcC1zt 0Hm6dptM7WW5c1lCSH97l58= =jL/v -----END PGP SIGNATURE----- --nextPart1986936.3ZWJh637UT-- -- gentoo-user@gentoo.org mailing list