Advertisement
kosuke_

closesyn.sh

Dec 7th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!bin/sh
  2. #Menghapus semua Rule
  3. iptables -F
  4. iptables -X
  5. iptables -P INPUT ACCEPT
  6. iptables -P OUTPUT ACCEPT
  7. iptables -P FORWARD ACCEPT
  8. #blok paket syn yang dicurigai jahat
  9. iptables -N synjahat
  10. iptables -A INPUT -p tcp --syn -j synjahat
  11. iptables -A synjahat -m limit --limit 1/s --limit-burst 3 -j ACCEPT
  12. iptables -A synjahat -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement