From: Alexander Marx Date: Thu, 24 May 2018 12:22:26 +0000 (+0200) Subject: BUG11695: Adding/editing rules with preset broken X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2FBUG11695;p=people%2Famarx%2Fipfire-2.x.git BUG11695: Adding/editing rules with preset broken added another check to fill same ports in source and destination when a custom service is selected. Signed-off-by: Alexander Marx Reported-by: erik@vanlinsteeict.nl --- diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi index 499f279d1..d17afabb8 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'}=$custsrvport;} + if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'grp3'} eq 'cust_srv'){$fwdfwsettings{'dnatport'}=$custsrvport;} } #check if DNAT port is multiple if($fwdfwsettings{'nat'} eq 'dnat' && $fwdfwsettings{'dnatport'} ne ''){