]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Firewall: Make it possible to use NAT without Ports specified
authorAlexander Marx <amarx@ipfire.org>
Wed, 23 Oct 2013 14:05:50 +0000 (16:05 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2013 14:30:17 +0000 (16:30 +0200)
html/cgi-bin/forwardfw.cgi

index fbee025a8b49f61a77e1e9a8a4c2a37c9c00ab97..fde7e5e8298f58fe31332fd9420ae80ec8e8eed7 100755 (executable)
@@ -595,10 +595,6 @@ sub checktarget
        #check DNAT settings (has to be single Host and single Port or portrange)
        if ($fwdfwsettings{'USE_NAT'} eq 'ON' && $fwdfwsettings{'nat'} eq 'dnat'){
                if($fwdfwsettings{'grp2'} eq 'tgt_addr' || $fwdfwsettings{'grp2'} eq 'cust_host_tgt' || $fwdfwsettings{'grp2'} eq 'ovpn_host_tgt'){
-                       if ($fwdfwsettings{'USESRV'} eq '' && $fwdfwsettings{'dnatport'} eq ''){
-                               $errormessage=$Lang::tr{'fwdfw target'}.": ".$Lang::tr{'fwdfw dnat porterr'}."<br>";
-                               return $errormessage;
-                       }
                        #check if manual ip is a single Host (if set)
                        if ($fwdfwsettings{'grp2'} eq 'tgt_addr'){
                                my @tmp= split (/\./,$fwdfwsettings{$fwdfwsettings{'grp2'}});