Skip to content

Instantly share code, notes, and snippets.

@douglascabral
Created September 16, 2016 15:03
Show Gist options
  • Select an option

  • Save douglascabral/0ada07e8bd03a0194a82b6d564cb4032 to your computer and use it in GitHub Desktop.

Select an option

Save douglascabral/0ada07e8bd03a0194a82b6d564cb4032 to your computer and use it in GitHub Desktop.
iptables example ping
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