forked from extern/shorewall_code
Put 'shorewall6 refresh' in trunk
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9217 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
dc65849d65
commit
53bd365b46
@ -2749,12 +2749,18 @@ sub create_chainlist_reload($) {
|
|||||||
emit( 'exec 3>&-',
|
emit( 'exec 3>&-',
|
||||||
'',
|
'',
|
||||||
'progress_message2 "Running iptables-restore..."',
|
'progress_message2 "Running iptables-restore..."',
|
||||||
'',
|
'' );
|
||||||
'cat ${VARDIR}/.iptables-restore-input | $IPTABLES_RESTORE -n # Use this nonsensical form to appease SELinux',
|
|
||||||
'if [ $? != 0 ]; then',
|
if ( $family == F_IPV4 ) {
|
||||||
|
emit ( 'cat ${VARDIR}/.iptables-restore-input | $IPTABLES_RESTORE -n # Use this nonsensical form to appease SELinux' );
|
||||||
|
} else {
|
||||||
|
emit ( 'cat ${VARDIR}/.iptables-restore-input | $IP6TABLES_RESTORE -n # Use this nonsensical form to appease SELinux' );
|
||||||
|
}
|
||||||
|
|
||||||
|
emit ( 'if [ $? != 0 ]; then',
|
||||||
' fatal_error "iptables-restore Failed. Input is in ${VARDIR}/.iptables-restore-input"',
|
' fatal_error "iptables-restore Failed. Input is in ${VARDIR}/.iptables-restore-input"',
|
||||||
"fi\n"
|
"fi\n"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
emit('true');
|
emit('true');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user