Created
October 2, 2014 20:00
-
-
Save gthank/52f68504d752ffbecdfe to your computer and use it in GitHub Desktop.
This file contains 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
$ 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