X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Fforwardfw%2Frules.pl;h=5116844b7e7087d2752272bc6cb96e2b44d74cc7;hp=baeb7ada57f0892a08df0fc925a41d463fb71b10;hb=e6e9a8117677eca8319982ce56aa72e93c9b407e;hpb=73c39dd4bda322d7d9240651c6db003bff477670 diff --git a/config/forwardfw/rules.pl b/config/forwardfw/rules.pl index baeb7ada5..5116844b7 100755 --- a/config/forwardfw/rules.pl +++ b/config/forwardfw/rules.pl @@ -251,7 +251,6 @@ sub buildrules #print rules to console foreach my $DPROT (@DPROT){ $DPORT = &get_port($hash,$key,$DPROT); - print "uzlputz DPROT= $DPROT $DPORT\n"; $PROT=$DPROT; $PROT="-p $PROT" if ($PROT ne '' && $PROT ne ' '); foreach my $a (sort keys %sourcehash){ @@ -593,6 +592,8 @@ sub get_port }else{ return "--dport ".&fwlib::get_srv_port($$hash{$key}[15],1,$prot); } + }elsif($prot eq 'ICMP' && $$hash{$key}[11] eq 'ON'){ #When PROT is ICMP and "use targetport is checked, this is an icmp-service + return "--icmp-type ".&fwlib::get_srv_port($$hash{$key}[15],3,$prot); } }elsif($$hash{$key}[14] eq 'cust_srvgrp'){ if ($prot ne 'ICMP'){