Advertisement
Dj_Dexter

reglas.sh

Jan 5th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Ejecutar este Script con sudo
  4. #
  5. echo Cargando Reglas....
  6. ## FLUSH de reglas
  7. iptables -F
  8. iptables -X
  9. iptables -Z
  10.  
  11.  
  12. # evita las limitaciones tecnicas de un ISP defectuoso
  13. iptables -A OUTPUT -p tcp --dport 80 -m state --state NEW -m recent --set --name thor --rdest -j ACCEPT
  14. iptables -A INPUT -p tcp -m tcp --tcp-flag RST RST -m state --state ESTABLISHED -m recent --name thor --rcheck --rsource --seconds 1 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement