* [gentoo-user] dhcpd and routes
@ 2007-02-06 12:20 Dave Oxley
2007-02-07 8:48 ` Nick Rout
2007-02-08 16:35 ` Dan Farrell
0 siblings, 2 replies; 3+ messages in thread
From: Dave Oxley @ 2007-02-06 12:20 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFyHKMx43ifHzpDVURAhdrAJ4qDCmtotrW0I3B1JPF7+fVNeQlBwCfZr13
9ZcoJHn+fX8e8tqiWPok05w=
=kJ0P
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] dhcpd and routes
2007-02-06 12:20 [gentoo-user] dhcpd and routes Dave Oxley
@ 2007-02-07 8:48 ` Nick Rout
2007-02-08 16:35 ` Dan Farrell
1 sibling, 0 replies; 3+ messages in thread
From: Nick Rout @ 2007-02-07 8:48 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] dhcpd and routes
2007-02-06 12:20 [gentoo-user] dhcpd and routes Dave Oxley
2007-02-07 8:48 ` Nick Rout
@ 2007-02-08 16:35 ` Dan Farrell
1 sibling, 0 replies; 3+ messages in thread
From: Dan Farrell @ 2007-02-08 16:35 UTC (permalink / raw
To: gentoo-user
On Tue, 06 Feb 2007 23:20:28 +1100
Dave Oxley <dave@daveoxley.co.uk> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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?
You will need a subnet declaration as such for each subnet on the
network. For example, something like
subnet 10.4.0.0 netmask 255.255.255.0 {
option routers 192.168.1.200;
}
might be appropriate. Without the range statement, you won't actually
offer DHCP addresses on the network, but the routing information should
be forwarded to the DHCP clients you are servicing on 192.168.1/24.
Good luck. DHCPd is neat ; )
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-02-08 16:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06 12:20 [gentoo-user] dhcpd and routes Dave Oxley
2007-02-07 8:48 ` Nick Rout
2007-02-08 16:35 ` Dan Farrell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox