Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Ejecutar este Script con sudo
- #
- echo Cargando Reglas....
- ## FLUSH de reglas
- iptables -F
- iptables -X
- iptables -Z
- # evita las limitaciones tecnicas de un ISP defectuoso
- iptables -A OUTPUT -p tcp --dport 80 -m state --state NEW -m recent --set --name thor --rdest -j ACCEPT
- 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