I'm writing an action extension.  I have in /etc/shorewall/rules:
TempBan(Ban1Day):info   inet            fw              tcp     3389

I can access the parameters within the parentheses like this:

use Shorewall::Chains;

my $list_name = $params[0];
$list_name = 'TempBan' unless defined $list_name;
my $seconds = $params[1];
$seconds = 86400 unless defined $seconds;

Is there anyway to access the source, destination, proto, and port?

Thanks in advance,
Bill

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to