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

Reply via email to