Hello,
on CentOS 6, iptables 1.4.7
i can use rule to block IPs in my IPSet from accessing one port, example SSH:
(note that this is not iptables command but a line from a save file "iptalbes-save > output")
But how to block multiple ports, example 21,22,25 ?
I tried --dports 21,22,25, but iptables not wanted to import it saying: iptables-restore v1.4.7: unknown option `--dports'
on CentOS 6, iptables 1.4.7
i can use rule to block IPs in my IPSet from accessing one port, example SSH:
Code:
-A INPUT -p tcp --dport 22 -m set --match-set blocklist src -j DROP
But how to block multiple ports, example 21,22,25 ?
I tried --dports 21,22,25, but iptables not wanted to import it saying: iptables-restore v1.4.7: unknown option `--dports'