From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 2.x development tree branch, fifteen, updated. 3c037075d0f6c296225500651d89b03b3c65d9e2 Date: Fri, 20 Dec 2013 13:05:13 +0100 Message-ID: <20131220120513.A833D205E4@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4424091073566037531==" List-Id: --===============4424091073566037531== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree". The branch, fifteen has been updated via 3c037075d0f6c296225500651d89b03b3c65d9e2 (commit) from a8b113e73d9e8b71eb57621109d7c4a6b46c34e2 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 3c037075d0f6c296225500651d89b03b3c65d9e2 Author: Alexander Marx Date: Fri Dec 20 12:53:46 2013 +0100 Firewall: when DNAT external port is given and dest port is empty, theres= now an errormessage displayed ----------------------------------------------------------------------- Summary of changes: doc/language_issues.es | 1 + doc/language_issues.fr | 1 + doc/language_issues.nl | 1 + doc/language_issues.pl | 1 + doc/language_issues.ru | 1 + doc/language_issues.tr | 1 + doc/language_missings | 4 ++++ html/cgi-bin/firewall.cgi | 5 ++++- langs/de/cgi-bin/de.pl | 1 + langs/en/cgi-bin/en.pl | 1 + 10 files changed, 16 insertions(+), 1 deletion(-) Difference in files: diff --git a/doc/language_issues.es b/doc/language_issues.es index f735730..356dc0e 100644 --- a/doc/language_issues.es +++ b/doc/language_issues.es @@ -643,6 +643,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_issues.fr b/doc/language_issues.fr index e33e653..6e1c15b 100644 --- a/doc/language_issues.fr +++ b/doc/language_issues.fr @@ -646,6 +646,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_issues.nl b/doc/language_issues.nl index 92ef57e..902b6e5 100644 --- a/doc/language_issues.nl +++ b/doc/language_issues.nl @@ -592,6 +592,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_issues.pl b/doc/language_issues.pl index f735730..356dc0e 100644 --- a/doc/language_issues.pl +++ b/doc/language_issues.pl @@ -643,6 +643,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_issues.ru b/doc/language_issues.ru index 7e1a86d..a5e6638 100644 --- a/doc/language_issues.ru +++ b/doc/language_issues.ru @@ -629,6 +629,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_issues.tr b/doc/language_issues.tr index fe1aed6..810b3d6 100644 --- a/doc/language_issues.tr +++ b/doc/language_issues.tr @@ -588,6 +588,7 @@ WARNING: untranslated string: fwdfw delete WARNING: untranslated string: fwdfw dnat WARNING: untranslated string: fwdfw dnat error WARNING: untranslated string: fwdfw dnat porterr +WARNING: untranslated string: fwdfw dnat porterr2 WARNING: untranslated string: fwdfw edit WARNING: untranslated string: fwdfw err nosrc WARNING: untranslated string: fwdfw err nosrcip diff --git a/doc/language_missings b/doc/language_missings index 8a751f0..0b6e3f0 100644 --- a/doc/language_missings +++ b/doc/language_missings @@ -106,6 +106,7 @@ < fwdfw dnat < fwdfw dnat error < fwdfw dnat porterr +< fwdfw dnat porterr2 < fwdfw DROP < fwdfw edit < fwdfw err nosrc @@ -518,6 +519,7 @@ < fwdfw dnat < fwdfw dnat error < fwdfw dnat porterr +< fwdfw dnat porterr2 < fwdfw DROP < fwdfw edit < fwdfw err nosrc @@ -914,6 +916,7 @@ < fwdfw dnat < fwdfw dnat error < fwdfw dnat porterr +< fwdfw dnat porterr2 < fwdfw DROP < fwdfw edit < fwdfw err nosrc @@ -1299,6 +1302,7 @@ < fwdfw dnat < fwdfw dnat error < fwdfw dnat porterr +< fwdfw dnat porterr2 < fwdfw DROP < fwdfw edit < fwdfw err nosrc diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 741fada..71ca752 100755 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -729,8 +729,11 @@ sub checkrule { #check valid port for NAT if($fwdfwsettings{'USE_NAT'} eq 'ON'){ - #if no port is given in nat area, take target host port + #if no dest port is given in nat area, take target host port if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'grp3'} eq 'TGT_PORT'= && $fwdfwsettings{'dnatport'} eq ''){$fwdfwsettings{'dnatport'}=3D$fwdfwsett= ings{'TGT_PORT'};} + if($fwdfwsettings{'TGT_PORT'} eq ''){ + $errormessage=3D$Lang::tr{'fwdfw dnat porterr2'}; + } #check if port given in nat area is a single valid port or portrange if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'TGT_PORT'} ne '' && = !&check_natport($fwdfwsettings{'dnatport'})){ $errormessage=3D$Lang::tr{'fwdfw target'}.": ".$Lang::tr{'fwdfw dnat port= err'}."
"; diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index b0b0724..e8fb995 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -930,6 +930,7 @@ 'fwdfw dnat' =3D> 'Destination-NAT (Port-Weiterleitung)', 'fwdfw dnat error' =3D> 'F=C3=BCr Destination-NAT muss ein einzelner Host al= s Ziel ausgew=C3=A4hlt werden. Gruppen oder Netzwerke sind nicht erlaubt', 'fwdfw dnat porterr' =3D> 'F=C3=BCr NAT-Regeln muss ein einzelner Port oder = Portbereich angegeben werden', +'fwdfw dnat porterr2' =3D> 'Externer Port (NAT) darf nur angegeben werden, w= enn ein Ziel-Port definiert ist.', 'fwdfw edit' =3D> 'Bearbeiten', 'fwdfw err nosrc' =3D> 'Keine Quelle ausgew=C3=A4hlt', 'fwdfw err nosrcip' =3D> 'Bitte Quell-IP-Adresse angeben', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 0909226..8bbfff3 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -955,6 +955,7 @@ 'fwdfw dnat' =3D> 'Destination NAT (Port forwarding)', 'fwdfw dnat error' =3D> 'You have to select a single host for DNAT. Groups o= r networks are not allowed.', 'fwdfw dnat porterr' =3D> 'You have to select a single port or portrange (tc= p/udp) for NAT', +'fwdfw dnat porterr2' =3D> 'Cannot use external port (NAT) when no destinati= on port is defined.', 'fwdfw edit' =3D> 'Edit', 'fwdfw err nosrc' =3D> 'No source selected.', 'fwdfw err nosrcip' =3D> 'Please provide a source IP address.', hooks/post-receive -- IPFire 2.x development tree --===============4424091073566037531==--