Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- port=19132
- iptables -I INPUT -p udp --dport $port -m state --state NEW -m recent --set --name DOS
- iptables -I INPUT -p udp --dport $port -m state --state NEW -m recent --update --seconds 60 --hitcount 20 --name DOS -j REJECT --reject-with icmp-port-unreachable
- echo "Порт $port защищен"
Advertisement