Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] dhcpd and routes
Date: Wed, 07 Feb 2007 08:50:42
Message-Id: 200702072148.11438.nick@rout.co.nz
In Reply to: [gentoo-user] dhcpd and routes by Dave Oxley
1 On Wednesday 07 February 2007 01:20, Dave Oxley wrote:
2 > I have a Gentoo server that is running Cisco VPN software to connect to
3 > my companies VPN. I have setup the server as a NAT for the specific
4 > subnet required for the VPN and the rest of my traffic goes through my
5 > router (192.168.1.1). I currently have to manually run the following
6 > command to setup the route:
7 > route add -net 10.4.0.0 netmask 255.255.255.0 gw 192.168.1.200
8 >
9 > On my Gentoo server I run dhcpd to allocate IP addresses for machines on
10 > my LAN. The current configuration is:
11 > subnet 192.168.1.0 netmask 255.255.255.0 {
12 > range 192.168.1.100 192.168.1.199;
13 > option routers 192.168.1.1;
14 > }
15 >
16 > So the question is how can I setup dhcpd to automatically setup the
17 > route command for all clients using the dhcpd?
18 >
19 > Cheers,
20 > Dave.
21
22 You are suggesting that each client needs the route command. Not so, set it on
23 the gateway. that way each client accessing the VPN will be routed via the
24 gateway back to 192.168.1.200 and thnce to the VPN.
25 --
26 gentoo-user@g.o mailing list