mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 19:51:40 +02:00
Fix a couple of bugs
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2459 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e2253d6092
commit
24dc05e6b7
@ -4093,7 +4093,7 @@ merge_levels() # $1=level at which superior action is called, $2=level at which
|
|||||||
#
|
#
|
||||||
substitute_action() # $1 = parameter, $2 = action
|
substitute_action() # $1 = parameter, $2 = action
|
||||||
{
|
{
|
||||||
local logpart=${2%%:*}
|
local logpart=${2##*:}
|
||||||
|
|
||||||
case $2 in
|
case $2 in
|
||||||
*:*)
|
*:*)
|
||||||
@ -4704,7 +4704,7 @@ add_nat_rule() {
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ -n "${excludezones}${excludedests}" ]; then
|
if [ -n "${excludezones}${excludedests}" ]; then
|
||||||
chain=$( build_exclusion_chain nat "" $excludedests
|
chain=$( build_exclusion_chain nat "" $excludedests )
|
||||||
|
|
||||||
for adr in $(separate_list $addr); do
|
for adr in $(separate_list $addr); do
|
||||||
addnatrule $(dnat_chain $source) $cli $proto $multiport $sports $dports $(dest_ip_range $adr) -j $chain
|
addnatrule $(dnat_chain $source) $cli $proto $multiport $sports $dports $(dest_ip_range $adr) -j $chain
|
||||||
|
Loading…
x
Reference in New Issue
Block a user