Created
August 20, 2012 02:45
-
-
Save wynemo/3399657 to your computer and use it in GitHub Desktop.
disable incoming icmp
This file contains hidden or 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
| #/etc/rc.local | |
| iptables -A OUTPUT -p icmp -o eth0 -j ACCEPT | |
| iptables -A INPUT -p icmp --icmp-type echo-reply -s 0/0 -i eth0 -j ACCEPT | |
| iptables -A INPUT -p icmp --icmp-type destination-unreachable -s 0/0 -i eth0 -j ACCEPT | |
| iptables -A INPUT -p icmp --icmp-type time-exceeded -s 0/0 -i eth0 -j ACCEPT | |
| 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