ipset create smtpblocks hash:net counters
ipset add smtpblocks 27.112.32.0/19
ipset add smtpblocks 204.8.87.0/24
iptables -A INPUT -p tcp –dport 25 -m set –match-set smtpblocks src -j DROP
using ipset
Leave a reply
ipset create smtpblocks hash:net counters
ipset add smtpblocks 27.112.32.0/19
ipset add smtpblocks 204.8.87.0/24
iptables -A INPUT -p tcp –dport 25 -m set –match-set smtpblocks src -j DROP