On 1/2/2016 10:54 AM, Bill Shirley wrote:
I was trying to use DROP since it's on the man page:
http://shorewall.net/manpages4/manpages/shorewall-mangle.html
and
http://shorewall.net/manpages/shorewall-mangle.html


Duh -- patch attached.

-Tom
--
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________
--- a/Shorewall/Perl/Shorewall/Tc.pm
+++ b/Shorewall/Perl/Shorewall/Tc.pm
@@ -450,6 +450,16 @@
 
                $matches = '! --tcp-flags FIN,SYN,RST,ACK SYN  -m socket 
--transparent ';
            },
+       },
+
+       DROP       => {
+           defaultchain   => 0,
+           allowedchains  => PREROUTING | FORWARD | OUTPUT | POSTROUTING,
+           minparams      => 0,
+           maxparams      => 0,
+           function       => sub() {
+               $target = 'DROP';
+           }
        },
 
        DSCP       => {
------------------------------------------------------------------------------
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to