Need help on ipchains->iptables
I have used RH7.0 kernel 2.2 on my home network firewall between my ISPīs ADSL and my private network. Itīs an old pentium with two nicīs where eth0 is LAN (192.168.0.0), and eth1(dhcp)is facing internet. this is the lines i have added in rc.local:
----------8<-------------------------------------
/sbin/ipchains -F input
/sbin/ipchains -F forward
/sbin/ipchains -F output
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.0.0/24 -j MASQ
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
echo 1 > /proc/sys/net/ipv4/ip_forward
-------------------->8---------------------------
This have worked just fine!
Now i want to use RH7.1 kernel 2.4 and iptables.
What should i replace these lines with in order to get the same results with 2.4?
Thanks in advance!
Staffan Lindfors Falun, Sweden
|