From: Alexander Marx Date: Thu, 25 Jul 2013 05:33:20 +0000 (+0200) Subject: Forward FIrewall: Bugfix: When using predefined services in rulecreation, the rule... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a4aa5fb0f695f58d8cf50d3a3b0544f2b82de30;p=people%2Fms%2Fipfire-2.x.git Forward FIrewall: Bugfix: When using predefined services in rulecreation, the rule was not applied. Bugfix: when in rulecreationpage and pressing "back" the site gets white. --- diff --git a/config/forwardfw/rules.pl b/config/forwardfw/rules.pl index 6a91ddf572..9f23c54e0a 100755 --- a/config/forwardfw/rules.pl +++ b/config/forwardfw/rules.pl @@ -575,7 +575,7 @@ sub get_port return "--dport $$hash{$key}[15] "; }else{ $$hash{$key}[15] =~ s/\:/-/g; - return ":$$hash{$key}[15]"; + return ":$$hash{$key}[15]"; } } }elsif($$hash{$key}[13] ne '' && $$hash{$key}[13] ne 'All ICMP-Types'){ @@ -585,7 +585,7 @@ sub get_port } }elsif($$hash{$key}[14] eq 'cust_srv'){ if ($prot ne 'ICMP'){ - if($$hash{$key}[31] eq 'dnat'){ + if($$hash{$key}[31] eq 'dnat' && $$hash{$key}[28] eq 'ON'){ return ":".&fwlib::get_srv_port($$hash{$key}[15],1,$prot); }else{ return "--dport ".&fwlib::get_srv_port($$hash{$key}[15],1,$prot); diff --git a/html/cgi-bin/forwardfw.cgi b/html/cgi-bin/forwardfw.cgi index f516e8d10b..61d02b7602 100755 --- a/html/cgi-bin/forwardfw.cgi +++ b/html/cgi-bin/forwardfw.cgi @@ -378,7 +378,7 @@ if ($fwdfwsettings{'ACTION'} eq 'copyrule') $fwdfwsettings{'copyfwrule'}='on'; &newrule; } -if ($fwdfwsettings{'ACTION'} eq '') +if ($fwdfwsettings{'ACTION'} eq '' or $fwdfwsettings{'ACTION'} eq 'reset') { &base; } @@ -2393,7 +2393,6 @@ END print"$Lang::tr{'fwdfw final_rule'}$Lang::tr{'fwdfw pol allow'}"; } }else{ - print"uzlputz daneben"; print"$Lang::tr{'fwdfw final_rule'}$Lang::tr{'fwdfw pol block'}"; } print"";