8

ipset to block access to exim and davecot

view full story
linux-howto

http://unix.stackexchange.com – I have created a ipset with a bunch of IPs that I want to block access to dovecot and exim. The ipset is called "bannedIPs" and have been added to iptables using this iptables -A INPUT -p tcp --dport 25 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 587 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 465 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 110 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 143 -m set --set bannedIPs src -j DROP iptables -A INPUT -p tcp --dport 993 -m set --set bannedIPs src -j DROP (HowTos)