
(Besides upgrading the router to one with more memory.)

Moderator: Moderators
Code: Select all
iptables -N limit25
iptables -I FORWARD -j limit25
iptables -I INPUT -j limit25
iptables -A limit25 -p tcp --dport 25 -m state --state NEW -m limit --limit 10/minute --limit-burst 10 -j RETURN
iptables -A limit25 -p tcp --dport 25 -m state --state NEW -j DROP
Code: Select all
config 'include'
option 'path' '/etc/firewall.user'