public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Arne Fitzenreiter <arne_f@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH v2] netother.cgi: show content of routing table 220
Date: Mon, 30 Mar 2020 19:38:13 +0200	[thread overview]
Message-ID: <7a3a8b5f112df7b2de54a682e0ee7557@ipfire.org> (raw)
In-Reply-To: <f3812fbf-f554-c7be-7c3a-54bf71c86d65@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 2661 bytes --]

This patch doesn't apply. It also change the rights of the netother.cgi 
in git. This should be 644 not 755


Am 2020-03-21 17:03, schrieb Peter Müller:
> 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(a)ipfire.org>
> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
> ---
>  html/cgi-bin/netother.cgi | 8 ++++++++
>  langs/de/cgi-bin/de.pl    | 1 +
>  langs/en/cgi-bin/en.pl    | 1 +
>  3 files changed, 10 insertions(+)
>  mode change 100644 => 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] =~ "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");
> 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 @@
>  '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',
> 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 @@
>  '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',

  parent reply	other threads:[~2020-03-30 17:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-07 18:46 [PATCH] " Peter Müller
2020-03-08 11:42 ` Michael Tremer
2020-03-08 13:15   ` Peter Müller
2020-03-08 13:35     ` Michael Tremer
2020-03-21 16:03       ` [PATCH v2] " Peter Müller
2020-03-22  9:24         ` Michael Tremer
2020-03-30 17:38         ` Arne Fitzenreiter [this message]
2020-03-30 17:56           ` Peter Müller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a3a8b5f112df7b2de54a682e0ee7557@ipfire.org \
    --to=arne_f@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox