mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
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:
parent
778c39aaff
commit
70c99a336d
@ -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"',
|
||||
'' );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user