Menu

#35 Fixed Problem With no locals in web interface

open
nobody
None
5
2003-05-18
2003-05-18
Anonymous
No

Just for anyone who might want to know,
the web interface doesn't handle blanks in the
interface_in column, which is significant of any local
outbound traffic from your server. I have coded a small
change to fix this in index.php.

print "<tr bgcolor=\"#FFFFFF\">";

print "<td><center>$line->chain</center></td>";
print "<td>$line->date</td>";
if ($display_netfilter_host) { print "<td>$line-
>host</td>"; }
//ads modified below
if ($display_netfilter_interface) {
if ($line->interface_in=="") {
print "<td>local</td>";
} else {
print "<td>$line->interface_in</td>";
}
}
//ads modified above
print "<td>$line->proto</td>";
print "<td><a href=\"from_host.php?ip=$line-
>ip_src\">";
if ($line->name_src=="unknown") { print "$line-
>ip_src"; } else { print "$line->name_src"; }
print "</a></td>";

Just change the stuff between the //ads modified.

Discussion


Log in to post a comment.