[PLUG] tiny iptables typo

Carla Schroder carla at bratgrrl.com
Sun Mar 12 07:04:12 UTC 2006


These are the ssh rules I'm trying while I'm figuring this out:

$ipt -A INPUT -p tcp --dport 22 --sport 1024:65535 -m state --state NEW -j 
ACCEPT

$ipt -t nat -A PREROUTING -i $WAN_IFACE -p tcp --dport 10000 -j DNAT 
--to-destination 192.168.1.12:22

Don't need a separate forwarding rule.

sorry, iptables is confusing enough!


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Carla Schroder
 check out my "Linux Cookbook", the ultimate Linux user's
 and sysadmin's guide! http://www.oreilly.com/catalog/linuxckbk/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the PLUG mailing list