mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Firewall: fix Update from core 75 to 76
This commit is contained in:
committed by
Michael Tremer
parent
1e4b7130e1
commit
a3f2459f8f
@@ -78,6 +78,11 @@ else
|
|||||||
|
|
||||||
if (! -s "$outfwsettings") {
|
if (! -s "$outfwsettings") {
|
||||||
print "Empty DMZ configuration file. Nothing to do. Exiting...\n";
|
print "Empty DMZ configuration file. Nothing to do. Exiting...\n";
|
||||||
|
#Fill the firewall settings file
|
||||||
|
open (SETTINGS, ">/var/ipfire/firewall/settings");
|
||||||
|
print SETTINGS "POLICY=MODE2\n";
|
||||||
|
print SETTINGS "POLICY1=MODE2\n";
|
||||||
|
close (SETTINGS);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ var/ipfire/fwhosts
|
|||||||
#var/ipfire/fwhosts/customnetworks
|
#var/ipfire/fwhosts/customnetworks
|
||||||
#var/ipfire/fwhosts/customservicegrp
|
#var/ipfire/fwhosts/customservicegrp
|
||||||
#var/ipfire/fwhosts/customservices
|
#var/ipfire/fwhosts/customservices
|
||||||
|
#var/ipfire/fwhosts/customservices.default
|
||||||
#var/ipfire/fwhosts/icmp-types
|
#var/ipfire/fwhosts/icmp-types
|
||||||
var/ipfire/fwlogs
|
var/ipfire/fwlogs
|
||||||
#var/ipfire/fwlogs/ipsettings
|
#var/ipfire/fwlogs/ipsettings
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ usr/sbin/firewall-policy
|
|||||||
var/ipfire/firewall/p2protocols
|
var/ipfire/firewall/p2protocols
|
||||||
var/ipfire/fwhosts/icmp-types
|
var/ipfire/fwhosts/icmp-types
|
||||||
var/ipfire/menu.d/50-firewall.menu
|
var/ipfire/menu.d/50-firewall.menu
|
||||||
|
var/ipfire/fwhosts/customservices.default
|
||||||
|
|||||||
@@ -291,6 +291,10 @@ touch /var/ipfire/fwhosts/customgroups
|
|||||||
touch /var/ipfire/fwhosts/customservices
|
touch /var/ipfire/fwhosts/customservices
|
||||||
touch /var/ipfire/fwhosts/customservicegrp
|
touch /var/ipfire/fwhosts/customservicegrp
|
||||||
|
|
||||||
|
if [ ! -s "/var/ipfire/fwhosts/customservices" ];then
|
||||||
|
cp /var/ipfire/fwhosts/customservices.default /var/ipfire/fwhosts/customservices
|
||||||
|
fi
|
||||||
|
|
||||||
# Fix ownership.
|
# Fix ownership.
|
||||||
chown -R nobody:nobody /var/ipfire/firewall
|
chown -R nobody:nobody /var/ipfire/firewall
|
||||||
chown -R nobody:nobody /var/ipfire/fwhosts
|
chown -R nobody:nobody /var/ipfire/fwhosts
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ $(TARGET) :
|
|||||||
cp $(DIR_SRC)/config/firewall/firewall-policy /usr/sbin/firewall-policy
|
cp $(DIR_SRC)/config/firewall/firewall-policy /usr/sbin/firewall-policy
|
||||||
cp $(DIR_SRC)/config/fwhosts/icmp-types $(CONFIG_ROOT)/fwhosts/icmp-types
|
cp $(DIR_SRC)/config/fwhosts/icmp-types $(CONFIG_ROOT)/fwhosts/icmp-types
|
||||||
cp $(DIR_SRC)/config/fwhosts/customservices $(CONFIG_ROOT)/fwhosts/customservices
|
cp $(DIR_SRC)/config/fwhosts/customservices $(CONFIG_ROOT)/fwhosts/customservices
|
||||||
|
cp $(DIR_SRC)/config/fwhosts/customservices $(CONFIG_ROOT)/fwhosts/customservices.default
|
||||||
# Oneliner configfiles
|
# Oneliner configfiles
|
||||||
echo "ENABLED=off" > $(CONFIG_ROOT)/vpn/settings
|
echo "ENABLED=off" > $(CONFIG_ROOT)/vpn/settings
|
||||||
echo "VPN_DELAYED_START=0" >>$(CONFIG_ROOT)/vpn/settings
|
echo "VPN_DELAYED_START=0" >>$(CONFIG_ROOT)/vpn/settings
|
||||||
|
|||||||
Reference in New Issue
Block a user