mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-30 03:23:47 +01:00
Fix DNAT with 'fw' source
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@226 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ff412cba4d
commit
be3f7e6580
@ -1536,7 +1536,7 @@ add_nat_rule() {
|
|||||||
# Generate nat table rules
|
# Generate nat table rules
|
||||||
|
|
||||||
if [ "$source" = "$FW" ]; then
|
if [ "$source" = "$FW" ]; then
|
||||||
run_iptables -t nat -A OUTPUT $proto $sports -d addr
|
run_iptables -t nat -A OUTPUT $proto $sports -d addr \
|
||||||
$multiport $dports -j $target1
|
$multiport $dports -j $target1
|
||||||
else
|
else
|
||||||
chain=`dnat_chain $source`
|
chain=`dnat_chain $source`
|
||||||
|
Loading…
Reference in New Issue
Block a user