Koozali.org: home of the SME Server

ipchains to iptables

Ben Morrisson

ipchains to iptables
« on: May 01, 2003, 11:20:32 AM »
Can I get someone who is a guru with iptables to rewrite this for me?

ip rule add from 192.168.0.202 nat 202.100.100.100 table main
ip route add nat 202.100.100.100 via 192.168.0.202 table local
ipchains -b -I forward 2 -p all -d 192.168.0.202 -j ACCEPT
ipchains -b -I forward 2 -p all -s 202.100.100.100 -j ACCEPT
ipchains -I input 2 -p all -s 0/0 -d 202.100.100.100 -j ACCEPT

i am converting the 1:1 how-to 5.6 if anyone wants it. But havent got time to learn iptables ATM. Can anyone help with this?

Also interested in expanding functionality to prevent access to anything but certain port number on those IP. So in english . . .

Allow all access to internal IP 192.168.0.202 via external IP 200.100.100.100 but only on port 80.

Let me know if anyone is interested?
All I need is someone to convert the above ruleset to iptables - cheers