Some iptables tricks
Multiport The Multiport extension allows you to specify multiple ports and ranges and makes it possible to create complex rules in one line. Here’s an example of how you can allow SSH, Web, IMAP and X terminal traffic iptables -A INPUT -p tcp -m multiport –dports 22,80,143,6000:6003 -j ACCEPT The alternative to using this rule […]