http://en.tldp.org/HOWTO/I
Here is the official HOWTO on how to set up full router capabilities regarding
to network masquerading.
Also to jlevie :
note that in RedHat I believe you have a "cleaner" way of setting ip_forward to 1:
Edit the /etc/sysconfig/network
There you will find a line :
"IP_FORWARD=no"
(Note config is from RedHat 9.0, your mileage may differ a bit)
Obivously setting this setting to yes toggles the automatic switching at boot time.
This way of setting the ip_forward flag is preferable since sysctl.conf may be executed
before the script RedHat has provided. So sysctl will enable ip_forward but then
RedHat will disable it again.
For more specifics about routing tables, just keep asking.
Main Topics
Browse All Topics





by: jleviePosted on 2004-08-06 at 06:14:28ID: 11735106
If the Linux box will simply be a router for three attached local networks it will suffice to simply enable ip forwarding ('echo 1 > /proc/sys/net/ipv4/ip_forw ard' or setting "net.ipv4.ip_forward = 1" in /etc/sysctl.conf). Then configure the default gateway on each machine all of the attached networks to use the local IP (on that network) of the Linux box.
That's fine for a simple router for local networks, but if two of the networks are local and using private IP space and the third is the Internet you'll need to se up a NAT'ing firewall on the Linux box.