From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Marx To: development@lists.ipfire.org Subject: [PATCH] BUG11695: Adding/editing rules with preset broken Date: Thu, 24 May 2018 14:26:04 +0200 Message-ID: <1527164764-17533-1-git-send-email-alexander.marx@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2216999389082197390==" List-Id: --===============2216999389082197390== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable added another check to fill same ports in source and destination when a custo= m service is selected. Signed-off-by: Alexander Marx Reported-by: erik(a)vanlinsteeict.nl --- html/cgi-bin/firewall.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 499f279..d17afab 100644 --- a/html/cgi-bin/firewall.cgi +++ b/html/cgi-bin/firewall.cgi @@ -757,6 +757,7 @@ sub checkrule } } if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'dnatport'} eq ''){$= fwdfwsettings{'dnatport'}=3D$custsrvport;} + if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'grp3'} eq 'cust_srv= '){$fwdfwsettings{'dnatport'}=3D$custsrvport;} } #check if DNAT port is multiple if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'dnatport'} ne ''){ --=20 2.7.4 --===============2216999389082197390==--