--On Monday, August 26, 2019 8:33 AM -0500 Mike <[email protected]> wrote:
What is the maximum # of ports you can specify in the port = command?
What's the iptables module?
For documentation on all the iptables modules, look at:
man 8 iptables-extensions
<http://ipset.netfilter.org/iptables-extensions.man.html>
Note that the multiport module lets you specify a long list of ports.
Here's one of my direct rules extracted from iptables-save:
-A INPUT -p tcp -m multiport --dports 22,587,25,465,110,995,143,993,4190 -m
set --match-set NonUS src -m conntrack --ctstate NEW -j DROP
(This drops any attempt to connect to authenticated services from a non-US
address.)
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users