iptables - ip filtering

view full story

http://www.linuxquestions.org – Hi Gentlemen! I'm trying to write an iptables config file, but got stuck. So I want to define an IP range that allows full access eth0-eth1 forwarding, and another that is allowed to access some special ip-s. The first part works, I could make the range has full access: iptables -A FORWARD -m iprange --src-range -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A FORWARD -o eth1 -i eth0 -j ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward But cant find out (HowTos)