This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== iptables ====== ===== Accept a Port/range ===== # iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT ===== Forward a Port/range ===== * **Add the forwarding rule** # iptables -t nat -I PREROUTING -i ethExternal -p tcp --dport 4662 -j DNAT --to 192.168.0.11:4662 * **Enable forwarding rule** # iptables -I FORWARD -i ethExternal -p tcp -d 192.168.0.11/32 --dport 4662 -j ACCEPT * **Add forwarding rule for internal hosts** # iptables -I FORWARD -i ethExternal -p tcp -s 192.168.0.11/32 --dport 4662 -j ACCEPT ===== Reference Links ===== * [[http://www.informit.com/articles/article.asp?p=421057&rl=1|InformIT iptables]]