Refine 'newnotsyn' option handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@602 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-06-18 19:55:16 +00:00
parent cc9fd2b4ef
commit ea38e5f72b

View File

@ -3307,14 +3307,9 @@ initialize_netfilter () {
if [ -z "$NEWNOTSYN" ]; then if [ -z "$NEWNOTSYN" ]; then
createchain newnotsyn no createchain newnotsyn no
interfaces=`find_interfaces_by_option newnotsyn` for interface in `find_interfaces_by_option newnotsyn`; do
run_iptables -A newnotsyn -i $interface -p tcp --tcp-flags ACK ACK -j ACCEPT
for interface in $interfaces; do run_iptables -A newnotsyn -i $interface -p tcp --tcp-flags RST RST -j ACCEPT
for interface1 in $interfaces; do
run_iptables -A newnotsyn -i $interface -o $interface1 -p tcp --tcp-flags ACK ACK -j ACCEPT
run_iptables -A newnotsyn -i $interface -o $interface1 -p tcp --tcp-flags RST RST -j ACCEPT
done
run_iptables -A newnotsyn -i $interface -j RETURN run_iptables -A newnotsyn -i $interface -j RETURN
done done