Gistrec

Iptable anti-DDOS

Aug 29th, 2016
310
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. port=19132
  2.  
  3. iptables -I INPUT -p udp --dport $port -m state --state NEW -m recent --set --name DOS
  4. 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
  5. echo "Порт $port защищен"
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment