my @timeframe=();
my %configinputfw=();
my %configoutgoingfw=();
-my %configdmzfw=();
my %confignatfw=();
my %aliases=();
my @DPROT=();
require "${General::swroot}/lang.pl";
require "${General::swroot}/forward/bin/firewall-lib.pl";
-my $configdmz = "${General::swroot}/forward/dmz";
my $configfwdfw = "${General::swroot}/forward/config";
my $configinput = "${General::swroot}/forward/input";
my $configoutgoing = "${General::swroot}/forward/outgoing";
my $snat='';
&General::readhash("${General::swroot}/forward/settings", \%fwdfwsettings);
&General::readhash("$netsettings", \%defaultNetworks);
-&General::readhasharray($configdmz, \%configdmzfw);
&General::readhasharray($configfwdfw, \%configfwdfw);
&General::readhasharray($configinput, \%configinputfw);
&General::readhasharray($configoutgoing, \%configoutgoingfw);
}
sub preparerules
{
- if (! -z "${General::swroot}/forward/dmz"){
- &buildrules(\%configdmzfw);
- }
if (! -z "${General::swroot}/forward/config"){
&buildrules(\%configfwdfw);
}