firewall: Convert filewall rules when updating to fifteen.

This commit is contained in:
Michael Tremer
2013-08-28 13:43:05 +02:00
parent 949d5c527a
commit 8d0aa71082
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
usr/bin/convert-dmz
usr/bin/convert-outgoingfw
usr/bin/convert-portfw
usr/bin/convert-xtaccess

View File

@@ -44,6 +44,15 @@ extract_files
# Update Language cache
perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
# Convert firewall configuration
/usr/bin/convert-xtaccess
/usr/bin/convert-outgoingfw
/usr/bin/convert-portfw
/usr/bin/convert-dmz
# Remove old firewall configuration files
rm -rf /var/ipfire/{dmzholes,portfw,outgoing,xtaccess}
sync
# This update need a reboot...