mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-03 12:09:14 +01:00
Correct an indentation problem in firewall
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@64 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
69220bedfe
commit
bdb05089e6
@ -1447,13 +1447,13 @@ process_rule() {
|
|||||||
if [ -n "$cli" ]; then
|
if [ -n "$cli" ]; then
|
||||||
run_iptables -t nat -A POSTROUTING $proto $cli \
|
run_iptables -t nat -A POSTROUTING $proto $cli \
|
||||||
$sports -d $serv $dports -j SNAT --to-source $snat
|
$sports -d $serv $dports -j SNAT --to-source $snat
|
||||||
else
|
else
|
||||||
for source_host in $source_hosts; do
|
for source_host in $source_hosts; do
|
||||||
run_iptables -t nat -A POSTROUTING \
|
run_iptables -t nat -A POSTROUTING \
|
||||||
-s ${source_host#*:} $proto $sports \
|
-s ${source_host#*:} $proto $sports \
|
||||||
-d $serv $dports -j SNAT --to-source $snat
|
-d $serv $dports -j SNAT --to-source $snat
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user