]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/netother.cgi
aliases.cgi: Use new system methods
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / netother.cgi
old mode 100644 (file)
new mode 100755 (executable)
index 1809abf..cbd2bc2
@@ -33,7 +33,7 @@ require "${General::swroot}/graphs.pl";
 my %color = ();
 my %mainsettings = ();
 &General::readhash("${General::swroot}/main/settings", \%mainsettings);
-&General::readhash("/srv/web/ipfire/html/themes/".$mainsettings{'THEME'}."/include/colors.txt", \%color);
+&General::readhash("/srv/web/ipfire/html/themes/ipfire/include/colors.txt", \%color);
 
 my @pings=();
 
@@ -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,7 +71,11 @@ if ( $querry[0] =~ "fwhits"){
                &Header::closebox();
        }
 
-       &Header::openbox('100%', 'center', "Firewall Hits $Lang::tr{'graph'}");
+       &Header::openbox('100%', 'center', "$Lang::tr{'connection 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();
 
@@ -79,6 +87,14 @@ if ( $querry[0] =~ "fwhits"){
        print "<pre>$output</pre>\n";
        &Header::closebox();
 
+       $output = `/sbin/ip route list table 220`;
+       if ( $output ) {
+               &Header::openbox('100%', 'left', $Lang::tr{'ipsec routing table entries'});
+               $output = &Header::cleanhtml($output,"y");
+               print "<pre>$output</pre>\n";
+               &Header::closebox()
+       }
+
        &Header::openbox('100%', 'left', $Lang::tr{'arp table entries'});
        $output = `/sbin/ip neigh show`;
        $output = &Header::cleanhtml($output,"y");