Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodionchernyshov/c5d3d10163c5babb23c1 to your computer and use it in GitHub Desktop.
Save rodionchernyshov/c5d3d10163c5babb23c1 to your computer and use it in GitHub Desktop.
iptables -A OUTPUT -p tcp -m tcp --dport 22 -j DROP
iptables -A OUTPUT -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment