Be sure that the 'restriction' member exists for the FORWARD chain

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-10-24 11:37:40 -07:00
parent c9b1b7684c
commit fc0ad7cd2e
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -2282,7 +2282,7 @@ sub setup_tc( $ ) {
ensure_mangle_chain( 'tcout', OUTPUT , OUTPUT_RESTRICT ); ensure_mangle_chain( 'tcout', OUTPUT , OUTPUT_RESTRICT );
if ( have_capability( 'MANGLE_FORWARD' ) ) { if ( have_capability( 'MANGLE_FORWARD' ) ) {
ensure_mangle_chain( 'tcfor', FORWARD ); ensure_mangle_chain( 'tcfor', FORWARD , NO_RESTRICT );
ensure_mangle_chain( 'tcpost', POSTROUTING, POSTROUTE_RESTRICT ); ensure_mangle_chain( 'tcpost', POSTROUTING, POSTROUTE_RESTRICT );
ensure_mangle_chain( 'tcin', INPUT , INPUT_RESTRICT ); ensure_mangle_chain( 'tcin', INPUT , INPUT_RESTRICT );
} }