Guest User

Untitled

a guest
Oct 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. iptables -N conn-flood
  2. iptables -I INPUT 1 -p tcp --syn -j conn-flood
  3. iptables -A conn-flood -m limit -–limit 7/s –-limit-burst 20 -j RETURN
  4. iptables -A conn-flood -j DROP
  5. iptables -A INPUT -p icmp -m limit --limit 1/s --limit-burst 1 -j ACCEPT
  6. iptables -A INPUT -p icmp -j DROP
  7. iptables -I INPUT -p tcp -m state --state NEW,ESTABLISHED -m recent --set -j ACCEPT
  8. iptables -I INPUT -p tcp -m state --state NEW -m recent --update --seconds 3 --hitcount 20 -j DROP
  9.  
  10.  
  11.  
  12. Koob:
  13.  
  14.  
  15. iptables -t raw -N ANTIDOS
  16. iptables -t raw -A ANTIDOS -m hashlimit --hashlimit 5/s --hashlimit-name limitDoS --hashlimit-mode srcip -j ACCEPT
  17. iptables -t raw -A ANTIDOS -j DROP
  18. iptables -t raw -A PREROUTING -i eth0 -p tcp --syn --dport 80 -j ANTIDOS
Add Comment
Please, Sign In to add comment