Make state match detection quiet

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7013 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-31 21:41:00 +00:00
parent 778c39aaff
commit 70c99a336d

View File

@ -170,11 +170,11 @@ sub generate_script_1() {
'#',
'# Recent kernels are difficult to configure -- we see state match omitted a lot so we check for it here',
'#',
'$IPTABLES -N foox1234',
'$IPTABLES -A foox1234 -m state --state ESTABLISHED,RELATED -j ACCEPT',
'qt $IPTABLES -N foox1234',
'qt $IPTABLES -A foox1234 -m state --state ESTABLISHED,RELATED -j ACCEPT',
'result=$?',
'$IPTABLES -F foox1234',
'$IPTABLES -X foox1234',
'qt $IPTABLES -F foox1234',
'qt $IPTABLES -X foox1234',
'[ $result = 0 ] || startup_error "Your kernel/iptables do not include state match support. No version of Shorewall will run on this system"',
'' );