From 879462965387442e12cbade08cc20e3498c7672a Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Sat, 19 Jan 2013 21:21:18 +0100 Subject: [PATCH] Forward Firewall: edited convert-outgoingfw. When a Protocol ESP or GRE is used AND a Port is selected (in old system), the rule was not converted successfully. --- config/forwardfw/convert-outgoingfw | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/forwardfw/convert-outgoingfw b/config/forwardfw/convert-outgoingfw index e94692abe..0f33396c2 100644 --- a/config/forwardfw/convert-outgoingfw +++ b/config/forwardfw/convert-outgoingfw @@ -365,7 +365,7 @@ sub process_rules $grp2='std_net_tgt'; $target='ALL'; } - if($configline[8] ne ''){ + if($configline[8] ne '' && $configline[3] ne 'gre' && $configline[3] ne 'esp'){ my @values=(); my @parts=split(",",$configline[8]); foreach (@parts){ @@ -389,7 +389,6 @@ sub process_rules next; } } - } $port=join("|",@values); @values=();