Skip to content

Instantly share code, notes, and snippets.

@gthank
Created October 2, 2014 20:00
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 gthank/52f68504d752ffbecdfe to your computer and use it in GitHub Desktop.
Save gthank/52f68504d752ffbecdfe to your computer and use it in GitHub Desktop.
$ sudo iptables-save
# Generated by iptables-save v1.4.21 on Thu Oct 2 19:59:57 2014
*filter
:INPUT ACCEPT [407:42791]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [121:24299]
-A FORWARD -s 10.0.0.1/32 -i eth0 -m policy --dir in --pol ipsec --reqid 4 --proto esp -j ACCEPT
-A FORWARD -d 10.0.0.1/32 -o eth0 -m policy --dir out --pol ipsec --reqid 4 --proto esp -j ACCEPT
COMMIT
# Completed on Thu Oct 2 19:59:57 2014
# Generated by iptables-save v1.4.21 on Thu Oct 2 19:59:57 2014
*nat
:PREROUTING ACCEPT [86:7738]
:INPUT ACCEPT [6:2860]
:OUTPUT ACCEPT [11:961]
:POSTROUTING ACCEPT [11:961]
-A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
COMMIT
# Completed on Thu Oct 2 19:59:57 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment