Correct DNAT with 'fw' source; verify interface in masq file entries

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@227 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-09-01 17:34:59 +00:00
parent be3f7e6580
commit b3e56a87ea

View File

@ -1537,7 +1537,7 @@ add_nat_rule() {
# Generate nat table rules
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
else
chain=`dnat_chain $source`
@ -2397,6 +2397,10 @@ setup_masq()
interface="${interface%:*}"
fi
if ! list_search $interface $all_interfaces; then
fatal_error "Error: Unknown interface $interface"
fi
if [ "$subnet" = "${subnet%!*}" ]; then
nomasq=
else