There are more than 20 and 27 parsings for local interface in the firwall log.
authorChristian Schmidt <maniacikarus@ipfire.org>
Sun, 23 Jan 2011 08:59:37 +0000 (09:59 +0100)
committerChristian Schmidt <maniacikarus@ipfire.org>
Sun, 23 Jan 2011 08:59:37 +0000 (09:59 +0100)
html/cgi-bin/logs.cgi/firewalllog.dat

index 2c4fb14..c2888c3 100644 (file)
@@ -333,7 +333,7 @@ foreach $_ (@log)
         my $comment = $3; 
         my $packet = $4;
 
-        $packet =~ /IN=(\w+)/;       my $iface=$1; if ( $1 eq "27" || $1 eq "20"){ $iface="";}
+        $packet =~ /IN=(\w+)/;       my $iface=$1; if ( $1 $1 =~ /2./ ){ $iface="";}
         $packet =~ /SRC=([\d\.]+)/;  my $srcaddr=$1;
         $packet =~ /DST=([\d\.]+)/;  my $dstaddr=$1;
         $packet =~ /MAC=([\w+\:]+)/; my $macaddr=$1;