From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: Re: [PATCH v2] netother.cgi: show content of routing table 220 Date: Mon, 30 Mar 2020 17:56:00 +0000 Message-ID: In-Reply-To: <7a3a8b5f112df7b2de54a682e0ee7557@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8588905082186242099==" List-Id: --===============8588905082186242099== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello *, for your information: The patch was already applied by Arne at March 26th, bu= t the Patchwork did not get it and so Git complained when he tried to apply it agai= n. Everything is fine, move along. :-) Thanks, and best regards, Peter M=C3=BCller > This patch doesn't apply. It also change the rights of the netother.cgi in = git. This should be 644 not 755 >=20 >=20 > Am 2020-03-21 17:03, schrieb Peter M=C3=BCller: >> 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 >> Signed-off-by: Peter M=C3=BCller >> --- >> =C2=A0html/cgi-bin/netother.cgi | 8 ++++++++ >> =C2=A0langs/de/cgi-bin/de.pl=C2=A0=C2=A0=C2=A0 | 1 + >> =C2=A0langs/en/cgi-bin/en.pl=C2=A0=C2=A0=C2=A0 | 1 + >> =C2=A03 files changed, 10 insertions(+) >> =C2=A0mode change 100644 =3D> 100755 html/cgi-bin/netother.cgi >> >> diff --git a/html/cgi-bin/netother.cgi b/html/cgi-bin/netother.cgi >> old mode 100644 >> new mode 100755 >> index dde1b603a..4f03c82e8 >> --- a/html/cgi-bin/netother.cgi >> +++ b/html/cgi-bin/netother.cgi >> @@ -79,6 +79,14 @@ if ( $querry[0] =3D~ "fwhits"){ >> =C2=A0=C2=A0=C2=A0=C2=A0 print "
$output
\n"; >> =C2=A0=C2=A0=C2=A0=C2=A0 &Header::closebox(); >> >> +=C2=A0=C2=A0=C2=A0 $output =3D `/sbin/ip route list table 220`; >> +=C2=A0=C2=A0=C2=A0 if ( $output ) { >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &Header::openbox('100%', 'left= ', $Lang::tr{'ipsec routing table entries'}); >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 $output =3D &Header::cleanhtml= ($output,"y"); >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 print "
$output
\n"; >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 &Header::closebox() >> +=C2=A0=C2=A0=C2=A0 } >> + >> =C2=A0=C2=A0=C2=A0=C2=A0 &Header::openbox('100%', 'left', $Lang::tr{'arp t= able entries'}); >> =C2=A0=C2=A0=C2=A0=C2=A0 $output =3D `/sbin/ip neigh show`; >> =C2=A0=C2=A0=C2=A0=C2=A0 $output =3D &Header::cleanhtml($output,"y"); >> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl >> index 80579e7cc..6f7b4db59 100644 >> --- a/langs/de/cgi-bin/de.pl >> +++ b/langs/de/cgi-bin/de.pl >> @@ -1498,6 +1498,7 @@ >> =C2=A0'ipsec mode tunnel' =3D> 'Tunnel', >> =C2=A0'ipsec network' =3D> 'IPsec-Netzwerk', >> =C2=A0'ipsec no connections' =3D> 'Keine aktiven IPsec-Verbindungen', >> +'ipsec routing table entries' =3D> 'Eintr=C3=A4ge der IPsec-Routing-Tabel= le', >> =C2=A0'ipsec settings' =3D> 'IPsec-Einstellungen', >> =C2=A0'iptable rules' =3D> 'IPTable-Regeln', >> =C2=A0'iptmangles' =3D> 'IPTable Mangles', >> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl >> index a68c8f411..1e1aed53c 100644 >> --- a/langs/en/cgi-bin/en.pl >> +++ b/langs/en/cgi-bin/en.pl >> @@ -1547,6 +1547,7 @@ >> =C2=A0'ipsec mode tunnel' =3D> 'Tunnel', >> =C2=A0'ipsec network' =3D> 'IPsec network', >> =C2=A0'ipsec no connections' =3D> 'No active IPsec connections', >> +'ipsec routing table entries' =3D> 'IPsec Routing Table Entries', >> =C2=A0'ipsec settings' =3D> 'IPsec Settings', >> =C2=A0'iptable rules' =3D> 'IPTable rules', >> =C2=A0'iptmangles' =3D> 'IPTable Mangles', --===============8588905082186242099==--