diff options
author | edward-p | 2019-03-26 11:46:58 +0800 |
---|---|---|
committer | edward-p | 2019-03-26 11:46:58 +0800 |
commit | 25558cc7a0de03c3ec46242039418621705ec90d (patch) | |
tree | 702f00453a9e6504ed8ae3c339d9064be7748e34 /iptables-fullconenat.install | |
download | aur-25558cc7a0de03c3ec46242039418621705ec90d.tar.gz |
initial commit
Diffstat (limited to 'iptables-fullconenat.install')
-rw-r--r-- | iptables-fullconenat.install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/iptables-fullconenat.install b/iptables-fullconenat.install new file mode 100644 index 000000000000..59754dc39862 --- /dev/null +++ b/iptables-fullconenat.install @@ -0,0 +1,9 @@ +post_install(){ + echo "Assuming eth0 is WAN interface:" + echo -e "\tiptables -t nat -A POSTROUTING -o eth0 -j FULLCONENAT #same as MASQUERADE" + echo -e "\tiptables -t nat -A PREROUTING -i eth0 -j FULLCONENAT #automatically restore NAT for inbound packets" +} + +post_upgrade() { + post_install +} |