Simply install in /etc/shorewall and/or /etc/shorewall6 and secure for
execution. Then 'shorewall show connections' ('shorewall6 show
connections') will display the connection mark in hex.
The script also removes the useless 'secmark=' setting from the
connection information.
-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 \________________________________________________
#!/usr/bin/perl -pw
sub in_hex( $ ) {
my $value = $_[0];
$value =~ /^0x/ ? $value : sprintf '0x%x', $_[0];
}
s/secmark=(?:\d+) ?//;
if ( /mark=(\d+)/ ) {
my $mark = in_hex( $1 );
s/mark=(?:\d+)/mark=$mark/;
}
------------------------------------------------------------------------------
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