Till Brehm
2016-04-21 8e5493520583b94f633da582fd543b754805d306
Changed behaviour of UFW installation. Do not enable it by deafult as the firewall will get enabled autmatically when a firewall record gets added in ispconfig. Enabling it without that record, the Firewall would lock out the user on next reboot.
2 files modified
4 ■■■ changed files
install/lib/installer_base.lib.php 2 ●●●●● patch | view | raw | blame | history
install/tpl/ufw.conf.master 2 ●●● patch | view | raw | blame | history
install/lib/installer_base.lib.php
@@ -1842,6 +1842,7 @@
    public function configure_ufw_firewall()
    {
        if($this->is_update == false) {
        $configfile = 'ufw.conf';
        if(is_file('/etc/ufw/ufw.conf')) copy('/etc/ufw/ufw.conf', '/etc/ufw/ufw.conf~');
        $content = rf("tpl/".$configfile.".master");
@@ -1849,6 +1850,7 @@
        exec('chmod 600 /etc/ufw/ufw.conf');
        exec('chown root:root /etc/ufw/ufw.conf');
    }
    }
    public function configure_bastille_firewall() {
        global $conf;
install/tpl/ufw.conf.master
@@ -2,7 +2,7 @@
# set to yes to start on boot
ENABLED=yes
ENABLED=no
# set to one of 'off', 'low', 'medium', 'high'
LOGLEVEL=low