]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/rootfiles/core/76/update.sh
firewall: Create mangle chain NAT_DESTINATION to silence error messages when updating.
[people/teissler/ipfire-2.x.git] / config / rootfiles / core / 76 / update.sh
index 43c4c3f072c79bed3f5ae42f7fab82a44edd625b..038adcff2db57486f737f9c3bb12b5e16d297325 100644 (file)
@@ -143,6 +143,8 @@ rm -rf /lib/modules
 
 # Remove old usb_modeswitch_data
 rm -rf /usr/share/usb_modeswitch
+# Remove old tzdata
+rm -rf /usr/share/zoneinfo
 
 # Remove dialctrl.pl script
 rm -f \
@@ -277,6 +279,7 @@ rm -f /srv/web/ipfire/cgi-bin/{dmzholes,outgoingfw,portfw,xtaccess}.cgi
 /sbin/iptables -N POLICYOUT 2>/dev/null
 /sbin/iptables -t nat -N NAT_SOURCE 2>/dev/null
 /sbin/iptables -t nat -N NAT_DESTINATION 2>/dev/null
+/sbin/iptables -t mangle -N NAT_DESTINATION 2>/dev/null
 
 # Create config files for firewall and fix permissions.
 touch /var/ipfire/firewall/config
@@ -289,6 +292,10 @@ touch /var/ipfire/fwhosts/customgroups
 touch /var/ipfire/fwhosts/customservices
 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.
 chown -R nobody:nobody /var/ipfire/firewall
 chown -R nobody:nobody /var/ipfire/fwhosts