mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
web UI: Add graph for connection tracking
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
a232fe32bc
commit
8ffdc78c49
@@ -41,7 +41,11 @@ my @querry = split(/\?/,$ENV{'QUERY_STRING'});
|
||||
$querry[0] = '' unless defined $querry[0];
|
||||
$querry[1] = 'hour' unless defined $querry[1];
|
||||
|
||||
if ( $querry[0] =~ "fwhits"){
|
||||
if ( $querry[0] eq "conntrack") {
|
||||
print "Content-Type: image/png\n\n";
|
||||
binmode(STDOUT);
|
||||
&Graphs::updateconntrackgraph($querry[1]);
|
||||
} elsif ( $querry[0] =~ "fwhits"){
|
||||
print "Content-type: image/png\n\n";
|
||||
binmode(STDOUT);
|
||||
&Graphs::updatefwhitsgraph($querry[1]);
|
||||
@@ -67,6 +71,10 @@ if ( $querry[0] =~ "fwhits"){
|
||||
&Header::closebox();
|
||||
}
|
||||
|
||||
&Header::openbox('100%', 'center', $Lang::tr{'connnection tracking'});
|
||||
&Graphs::makegraphbox("netother.cgi", "conntrack", "day");
|
||||
&Header::closebox();
|
||||
|
||||
&Header::openbox('100%', 'center', "$Lang::tr{'firewallhits'} $Lang::tr{'graph'}");
|
||||
&Graphs::makegraphbox("netother.cgi","fwhits","day");
|
||||
&Header::closebox();
|
||||
|
||||
Reference in New Issue
Block a user