Refine 'newnotsyn' option handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@600 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-18 19:40:35 +00:00
parent 045263c704
commit 88595aec4f

View File

@ -3308,6 +3308,9 @@ initialize_netfilter () {
createchain newnotsyn no createchain newnotsyn no
for interface in `find_interfaces_by_option newnotsyn`; do for interface in `find_interfaces_by_option newnotsyn`; do
#
# Packets arriving on this interface are submitted to the rules
#
run_iptables -A newnotsyn -i $interface -j RETURN run_iptables -A newnotsyn -i $interface -j RETURN
done done
@ -3375,9 +3378,13 @@ build_common_chain() {
run_iptables -A common -p tcp --tcp-flags ACK ACK -j ACCEPT run_iptables -A common -p tcp --tcp-flags ACK ACK -j ACCEPT
run_iptables -A common -p tcp --tcp-flags RST RST -j ACCEPT run_iptables -A common -p tcp --tcp-flags RST RST -j ACCEPT
else else
for interface in `find_interfaces_by_option newnotsyn`; do interfaces=`find_interfaces_by_option newnotsyn`
run_iptables -A common -i $interface -p tcp --tcp-flags ACK ACK -j ACCEPT
run_iptables -A common -i $interface -p tcp --tcp-flags RST RST -j ACCEPT for interface in $interfaces; do
for interface1 in $interfaces; do
run_iptables -A common -i $interface -o $interface1 -p tcp --tcp-flags ACK ACK -j ACCEPT
run_iptables -A common -i $interface -o $interface1 -p tcp --tcp-flags RST RST -j ACCEPT
done
done done
fi fi
# #