Fedora Core 5 NAT routing
Posted by Robert Swarthout | Filed under Fedora
After searching online for a hour or so I was able to get iptables setup correctly to use a Fedora Core 5 server as a router for an internal network. The following iptable rules is all I needed. I ended making a file and putting these 4 lines into it, then calling the file at system bootup from rc.local.
iptables –flush -t nat
iptables –table nat –append POSTROUTING –out-interface eth0 -j MASQUERADE
iptables –append FORWARD –in-interface eth0 -j ACCEPTecho 1 > /proc/sys/net/ipv4/ip_forward
The above setup does make an assumptions, that all nodes within the network will use static IP address. They all need to have their gateway addresses set to the IP address of the routing server. Now I need to figure out how to get this working with LVS.
