Skip to content
This repository has been archived by the owner on Sep 16, 2018. It is now read-only.

iptables forward exclude 127.0.0.1 #44

Merged
merged 1 commit into from Dec 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.sh
Expand Up @@ -308,7 +308,7 @@ cat > /etc/init.d/ipsec-assist <<'EOF'
case "$1" in
start)
echo "Starting up the goodness of IPSec and XL2TPD"
iptables --table nat --append POSTROUTING --jump MASQUERADE
iptables --table nat ! -d 127.0.0.1 --append POSTROUTING --jump MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
for each in /proc/sys/net/ipv4/conf/*
do
Expand All @@ -327,7 +327,7 @@ case "$1" in
;;
restart)
echo "Restarting IPSec and XL2TPD"
iptables --table nat --append POSTROUTING --jump MASQUERADE
iptables --table nat ! -d 127.0.0.1 --append POSTROUTING --jump MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
for each in /proc/sys/net/ipv4/conf/*
do
Expand Down