X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Fforwardfw%2Fconvert-portfw;h=e741c3d8de193c7306ef52023d5ddf9edd4f9607;hp=691cfb429a0a632114d423f43d8ecf1f95c0bd16;hb=dc21519f683d5bb0f7e5a9dfcfb4806afb895217;hpb=caca013c1165230eea388ed4a770f6663ad5608e;ds=sidebyside diff --git a/config/forwardfw/convert-portfw b/config/forwardfw/convert-portfw index 691cfb429..e741c3d8d 100755 --- a/config/forwardfw/convert-portfw +++ b/config/forwardfw/convert-portfw @@ -1,18 +1,33 @@ #!/usr/bin/perl - -######################################################################## -# Script: convert-portfw -# Date: 21.03.2013 -# Author: Alexander Marx (amarx@ipfire.org) -######################################################################## -# -# This script converts old portforwarding rules from old Firewall -# to the new one. This is a 3-step process. -# STEP1: read old config and normalize settings -# STEP2: create new rules from old ones -# STEP3: check if rule already exists, when not, put it into -# /var/ipfire/forward/nat -######################################################################## +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2013 # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### +# Author: Alexander Marx (amarx@ipfire.org) # +############################################################################### +# # +# This script converts old portforwarding rules from old Firewall # +# to the new one. This is a 3-step process. # +# STEP1: read old config and normalize settings # +# STEP2: create new rules from old ones # +# STEP3: check if rule already exists, when not, put it into # +# /var/ipfire/forward/nat # +############################################################################### require '/var/ipfire/general-functions.pl'; my @values=(); my @built_rules=();