you wanna read about iptables.
you can get a simple gateway by adding these lines to /etc/rc.local:
/sbin/ipchains -A forward -i eth1 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
but iptables is the replacement for ipchains since rh70. and it's very similar, a bit more powerful tho.
|