mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
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:
committed by
Arne Fitzenreiter
parent
2c0b745abb
commit
fdf3e9a96b
8
html/cgi-bin/netother.cgi
Normal file → Executable file
8
html/cgi-bin/netother.cgi
Normal file → Executable 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");
|
||||
|
||||
Reference in New Issue
Block a user