On 1/4/2015 10:09 AM, Steven Jan Springl wrote: > Rule: > > TARPIT() lan fw tcp 25 > > produces the following error message: > > iptables-restore v1.4.14: Couldn't load target `TARPIT()':No such file or > directory. > > > Similarly, Rule: > > TARPIT(0) lan fw tcp 25 > > produces the following error message: > > iptables-restore v1.4.14: Couldn't load target `TARPIT(0)':No such file or > directory >
Happy New Year Steven. The attached patch seems to correct those problems. Thanks, -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 \________________________________________________
diff --git a/Shorewall/Perl/Shorewall/Rules.pm
b/Shorewall/Perl/Shorewall/Rules.pm
index 1cecd81..a45aeb7 100644
--- a/Shorewall/Perl/Shorewall/Rules.pm
+++ b/Shorewall/Perl/Shorewall/Rules.pm
@@ -2405,10 +2405,12 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) {
fatal_error "TARPIT is only valid with PROTO tcp (6)" if (
resolve_proto( $proto ) || 0 ) != TCP;
- if ( $param ) {
+ if ( supplied $param ) {
fatal_error "TARPIT Parameter must be 'tarpit',
'honeypot' or 'reset'" unless $param =~ /^(tarpit|honeypot|reset)$/;
$action = "TARPIT --$param";
$log_action = 'TARPIT';
+ } else {
+ $action = $log_action = 'TARPIT';
}
$exceptionrule = '-p 6 ';
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
