HomePage » Network » LinuxIptables


Interesting options of iptables

Do you know...

you can add comment to iptables rules by
iptables -I INPUT 1 -p tcp --dport 22 -j ACCEPT -m comment --comment "Incoming SSH"


you can specify ip range
iptables -I INPUT 1 -m iprange --src-range 10.0.0.1-10.0.0.254 --dst-range 10.2.0.1-10.2.0.254 -j ACCEPT


you can specify multiple ports
iptables -I INPUT 1 -p tcp -m multiport --dports 20:22,25,80,110,443 -j ACCEPT


Comments [Hide comments/form]
3Oui7k <a href="http://uqsfmlaccnft.com/&
-- 176.144.21.46.justqu (2012-01-05 17:59:29)
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki