]> git.ipfire.org Git - people/amarx/ipfire-2.x.git/commitdiff
BUG11695: Adding/editing rules with preset broken BUG11695
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 24 May 2018 12:22:26 +0000 (14:22 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Thu, 24 May 2018 12:22:26 +0000 (14:22 +0200)
added another check to fill same ports in source and destination when a custom service is selected.

Signed-off-by: Alexander Marx <alexander.marx@ipfire.org>
Reported-by: erik@vanlinsteeict.nl
html/cgi-bin/firewall.cgi

index 499f279d1fefb68d5e85186e0f48edd76ab455e3..d17afabb894c2ef40465d498de8af5f294508097 100644 (file)
@@ -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 ''){