system("/sbin/iptables -N OUTGOINGFWMAC >/dev/null 2>&1");
if ( $outfwsettings{'POLICY'} eq 'MODE0' ) {
+ &firewall_local_reload();
exit 0
}
applyrule("-o $netsettings{'RED_DEV'} -j DROP -m comment --comment 'DROP_OUTGOINGFW '", 0);
}
+&firewall_local_reload();
+
sub applyrule($$) {
my $cmd = shift;
my $macrule = shift;
system("/sbin/iptables -A OUTGOINGFW $cmd");
}
}
+
+sub firewall_local_reload() {
+ my $script = "/etc/sysconfig/firewall.local";
+
+ if ( -x $script ) {
+ system("$script reload >/dev/null 2>&1");
+ }
+}