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 1HEiVl-0006hR-N9 for garchives@archives.gentoo.org; Wed, 07 Feb 2007 08:50:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l178nN6S032368; Wed, 7 Feb 2007 08:49:23 GMT Received: from mx5.orcon.net.nz (loadbalancer2.orcon.net.nz [219.88.242.4]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l178jIIP027809 for ; Wed, 7 Feb 2007 08:45:18 GMT Received: from Debian-exim by mx5.orcon.net.nz with local (Exim 4.63) (envelope-from ) id 1HEiQ7-0003c6-Qx for gentoo-user@lists.gentoo.org; Wed, 07 Feb 2007 21:44:51 +1300 Received: from 60-234-144-216.bitstream.orcon.net.nz ([60.234.144.216] helo=[10.1.10.11]) by mx5.orcon.net.nz with esmtp (Exim 4.63) (envelope-from ) id 1HEiQ7-0003NX-7r for gentoo-user@lists.gentoo.org; Wed, 07 Feb 2007 21:44:51 +1300 From: Nick Rout To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] dhcpd and routes Date: Wed, 7 Feb 2007 21:48:11 +1300 User-Agent: KMail/1.9.3 References: <45C8728C.7000602@daveoxley.co.uk> In-Reply-To: <45C8728C.7000602@daveoxley.co.uk> 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="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702072148.11438.nick@rout.co.nz> X-DSPAM-Check: by mx5.orcon.net.nz on Wed, 07 Feb 2007 21:44:51 +1300 X-DSPAM-Result: Innocent X-DSPAM-Processed: Wed Feb 7 21:44:51 2007 X-DSPAM-Confidence: 0.6963 X-DSPAM-Improbability: 1 in 230 chance of being spam X-DSPAM-Probability: 0.0000 X-Archives-Salt: edc681fe-050b-4d97-82fc-e48d667ca5f1 X-Archives-Hash: 0f01c67db91cc0d357f6f98c8773f6ec On Wednesday 07 February 2007 01:20, Dave Oxley wrote: > I have a Gentoo server that is running Cisco VPN software to connect to > my companies VPN. I have setup the server as a NAT for the specific > subnet required for the VPN and the rest of my traffic goes through my > router (192.168.1.1). I currently have to manually run the following > command to setup the route: > route add -net 10.4.0.0 netmask 255.255.255.0 gw 192.168.1.200 > > On my Gentoo server I run dhcpd to allocate IP addresses for machines on > my LAN. The current configuration is: > subnet 192.168.1.0 netmask 255.255.255.0 { > range 192.168.1.100 192.168.1.199; > option routers 192.168.1.1; > } > > So the question is how can I setup dhcpd to automatically setup the > route command for all clients using the dhcpd? > > Cheers, > Dave. You are suggesting that each client needs the route command. Not so, set it on the gateway. that way each client accessing the VPN will be routed via the gateway back to 192.168.1.200 and thnce to the VPN. -- gentoo-user@gentoo.org mailing list