]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
netother.cgi: show content of routing table 220
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 21 Mar 2020 16:03:00 +0000 (16:03 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 26 Mar 2020 10:02:52 +0000 (10:02 +0000)
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>
html/cgi-bin/netother.cgi [changed mode: 0644->0755]
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

old mode 100644 (file)
new mode 100755 (executable)
index dde1b60..4f03c82
@@ -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");
index bf43357b9bbee6e2e4dde96c149ec157ec954642..be6daa3ea1ad2f27031aaf0e0fb0b4e98a8026f1 100644 (file)
 'ipsec mode tunnel' => 'Tunnel',
 'ipsec network' => 'IPsec-Netzwerk',
 'ipsec no connections' => 'Keine aktiven IPsec-Verbindungen',
+'ipsec routing table entries' => 'Einträge der IPsec-Routing-Tabelle',
 'ipsec settings' => 'IPsec-Einstellungen',
 'iptable rules' => 'IPTable-Regeln',
 'iptmangles' => 'IPTable Mangles',
index a68c8f411d20c59546286a95bc0314428d17aefe..1e1aed53cb453ce40625ead21fc8a0997c2a11a1 100644 (file)
 'ipsec mode tunnel' => 'Tunnel',
 'ipsec network' => 'IPsec network',
 'ipsec no connections' => 'No active IPsec connections',
+'ipsec routing table entries' => 'IPsec Routing Table Entries',
 'ipsec settings' => 'IPsec Settings',
 'iptable rules' => 'IPTable rules',
 'iptmangles' => 'IPTable Mangles',