mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-15 19:01:19 +01:00
Fix bad bug in find_hosts_by_option()
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@376 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
43b6a8acc8
commit
ba05611498
@ -1159,7 +1159,7 @@ find_hosts_by_option() # $1 = option
|
|||||||
|
|
||||||
for interface in $all_interfaces; do
|
for interface in $all_interfaces; do
|
||||||
eval options=\$`chain_base ${interface}`_options
|
eval options=\$`chain_base ${interface}`_options
|
||||||
list_search $options && \
|
list_search $1 $options && \
|
||||||
echo ${interface}:0.0.0.0/0
|
echo ${interface}:0.0.0.0/0
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -1679,8 +1679,7 @@ setup_nat() {
|
|||||||
qt ip addr del $external dev $interface
|
qt ip addr del $external dev $interface
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$allints" -o "$allints" = "Yes" \
|
if [ -z "$allints" -o "$allints" = "Yes" -o "$allints" = "yes" ]
|
||||||
-o "$allints" = "yes" ]
|
|
||||||
then
|
then
|
||||||
addnatrule nat_in -d $external -j DNAT --to-destination $internal
|
addnatrule nat_in -d $external -j DNAT --to-destination $internal
|
||||||
addnatrule nat_out -s $internal -j SNAT --to-source $external
|
addnatrule nat_out -s $internal -j SNAT --to-source $external
|
||||||
|
Loading…
Reference in New Issue
Block a user