From 9c89c64de19f43d77e2bc720fef2b58486472878 Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Thu, 24 Oct 2013 16:04:26 +0200 Subject: [PATCH] Firewall: rename Protocol 41 in Dropdown and ruletable ->Now "IPv6 Encapsulation (protocol 41)" in dropdown and "IPv6 Encap" in ruletable --- html/cgi-bin/firewall.cgi | 12 ++++++++++-- langs/de/cgi-bin/de.pl | 1 + langs/en/cgi-bin/en.pl | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index c7c9fbda7..6e11176f2 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -1757,7 +1757,11 @@ END if ($_ eq $fwdfwsettings{'PROT'}) { print " selected=\"selected\""; } - print ">$_"; + if($_ eq "IPv6"){ + print ">$Lang::tr{'fwdfw prot41'}"; + }else{ + print ">$_"; + } } print< @@ -2467,7 +2471,11 @@ END #Get Protocol my $prot; if ($$hash{$key}[8]){ - push (@protocols,$$hash{$key}[8]); + if ($$hash{$key}[8] eq "IPv6"){ + push (@protocols,"IPv6 Encap") + }else{ + push (@protocols,$$hash{$key}[8]); + } }elsif($$hash{$key}[14] eq 'cust_srv'){ &get_serviceports("service",$$hash{$key}[15]); }elsif($$hash{$key}[14] eq 'cust_srvgrp'){ diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index ce48d6948..5abadb75b 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -963,6 +963,7 @@ 'fwdfw pol text' => 'Firewall-Standardverhalten für Verbindungen aus lokalen Netzwerken: Alle Verbindungen können entweder zugelassen oder geblockt werden, wenn keine Ausnahmeregel zutrifft. "Blockiert" trennt ebenfalls die Kommunikation zwischen den lokalen Netzwerken.', 'fwdfw pol text1' => 'Firewall-Standardverhalten für von der Firewall selbst initiierte Verbindungen.', 'fwdfw pol title' => 'Standardverhalten der Firewall', +'fwdfw prot41' => 'IPv6 Encapsulation (Protokoll 41)', 'fwdfw red' => 'ROT', 'fwdfw reread' => 'Änderungen übernehmen', 'fwdfw rule action' => 'Regelaktion:', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index c3e4c3eb2..4915b5859 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -988,6 +988,7 @@ 'fwdfw pol text' => 'Sets the default firewall behaviour for connections from local networks. You may either allow all new connections or block them by default. Connections between the local networks are also blocked in the latter mode.', 'fwdfw pol text1' => 'Sets the default firewall behaviour for connections initiated by the firewall itself. Attention! You may lock yourself out.', 'fwdfw pol title' => 'Default firewall behaviour', +'fwdfw prot41' => 'IPv6 Encapsulation (Protocol 41)', 'fwdfw red' => 'RED', 'fwdfw reread' => 'Apply changes', 'fwdfw rule action' => 'Rule action:', -- 2.39.2