Skip to content

Instantly share code, notes, and snippets.

@mattes
Created January 29, 2018 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/d2a6e227a488e308831d126688d0659b to your computer and use it in GitHub Desktop.
Save mattes/d2a6e227a488e308831d126688d0659b to your computer and use it in GitHub Desktop.
iptables -A OUTPUT -d 127.0.0.0/8 -j ACCEPT
iptables -A OUTPUT --dst redis -j ACCEPT
iptables -A OUTPUT --dst postgres -j ACCEPT
iptables -P OUTPUT DROP
iptables -L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment