netother.cgi: show content of routing table 220

Since IPsec routing information do not show up in the normal routing
table, also displaying the contents of table 220 on netother.cgi might
be useful for debugging purposes.

The second version of this patch omits the output if routing table 220
is empty and introduces a custom translation for IPsec routing table
entries instead of just adding the table number to the generic translation.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Peter Müller
2020-03-21 16:03:00 +00:00
committed by Arne Fitzenreiter
parent 2c0b745abb
commit fdf3e9a96b
3 changed files with 10 additions and 0 deletions

8
html/cgi-bin/netother.cgi Normal file → Executable file
View File

@@ -79,6 +79,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");