Created
July 24, 2016 03:12
-
-
Save rodrigoSyscop/cb4b9a06566f330926b82862fc5ed416 to your computer and use it in GitHub Desktop.
Firewall IPTables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# EXIBE REGRAS ATIVAS | |
# -n : usa números ao invés de nomes de portas | |
# -v : exibe estatísticas | |
# -L : lista regras ativas | |
iptables -nvL | |
# Altera a política padrão da chain FORWARD | |
iptables -P FORWARD DROP | |
# Apaga todas as regras em todas as chains | |
iptables --flush | |
# Barrando pacotes chegando pela interface de rede | |
# -p | --portocol : | |
# -i | --interface: | |
# -j : target DROP|ACCEPT|REJECT|REDIRECT|... | |
iptables -A INPUT -p icmp -i eth0 -j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment