mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
firewall: Convert filewall rules when updating to fifteen.
This commit is contained in:
4
config/rootfiles/core/fifteen/filelists/firewall
Normal file
4
config/rootfiles/core/fifteen/filelists/firewall
Normal file
@@ -0,0 +1,4 @@
|
||||
usr/bin/convert-dmz
|
||||
usr/bin/convert-outgoingfw
|
||||
usr/bin/convert-portfw
|
||||
usr/bin/convert-xtaccess
|
||||
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user