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 1HohCh-0001lP-Ss for garchives@archives.gentoo.org; Thu, 17 May 2007 14:43:44 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4HEg0YQ003912; Thu, 17 May 2007 14:42:00 GMT Received: from spore.ath.cx (c-24-245-14-14.hsd1.mn.comcast.net [24.245.14.14]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4HEb1LK030622 for ; Thu, 17 May 2007 14:37:02 GMT Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by spore.ath.cx (Postfix) with ESMTP id 3C1F059601 for ; Thu, 17 May 2007 09:37:01 -0500 (CDT) Date: Thu, 17 May 2007 09:37:01 -0500 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: dhcpcd overwrites /etc/resolv.conf after CiscoVPN is started Message-ID: <20070517093701.11b0d0af@pascal.spore.ath.cx> In-Reply-To: <200705171608.07447.Dan.Johansson@dmj.nu> References: <200705171608.07447.Dan.Johansson@dmj.nu> Organization: Spore, Ltd. X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; x86_64-pc-linux-gnu) 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: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9a619d9d-18a3-4ca3-967f-ae921a2eac52 X-Archives-Hash: e5f8bbfb27b19ce4b89837e4723e36f4 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? > > Regards, 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=("dhcp") | dhcpcd_eth1=("-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. -- gentoo-user@gentoo.org mailing list