From e7e62b951c40b377b132d571b09853f6777b9593 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 2 Jan 2016 12:36:38 -0800 Subject: [PATCH] Support the DROP command in the mangle file Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Tc.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm index 365e6e454..9f76e1e4a 100644 --- a/Shorewall/Perl/Shorewall/Tc.pm +++ b/Shorewall/Perl/Shorewall/Tc.pm @@ -452,6 +452,16 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$ ) { }, }, + DROP => { + defaultchain => 0, + allowedchains => PREROUTING | FORWARD | OUTPUT | POSTROUTING, + minparams => 0, + maxparams => 0, + function => sub() { + $target = 'DROP'; + } + }, + DSCP => { defaultchain => 0, allowedchains => PREROUTING | FORWARD | OUTPUT | POSTROUTING,