Created
September 16, 2016 15:03
-
-
Save douglascabral/0ada07e8bd03a0194a82b6d564cb4032 to your computer and use it in GitHub Desktop.
iptables example ping
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
| Allow Ping from Outside to Inside | |
| iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT | |
| iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT | |
| Allow Ping from Inside to Outside | |
| iptables -A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT | |
| iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment