tbrehm
2012-08-28 c92c979c6f1aef5143cd5794b246375351668df0
Implemented: FS#2000 - Remove 192.168.x defaults from network configuration settings.
2 files modified
11 ■■■■■ changed files
install/tpl/server.ini.master 6 ●●●● patch | view | raw | blame | history
server/plugins-available/network_settings_plugin.inc.php 5 ●●●● patch | view | raw | blame | history
install/tpl/server.ini.master
@@ -6,11 +6,11 @@
[server]
auto_network_configuration=n
ip_address=192.168.0.105
ip_address=0.0.0.0
netmask=255.255.255.0
gateway=192.168.0.1
gateway=0.0.0.0
hostname=server1.domain.tld
nameservers=192.168.0.1,192.168.0.2
nameservers=8.8.8.8,8.8.4.4
firewall=bastille
loglevel=2
backup_dir=/var/backup
server/plugins-available/network_settings_plugin.inc.php
@@ -81,7 +81,10 @@
        
        //* Configure the debian network card settings.
        //* Dont configure
        if($server_config['auto_network_configuration'] == 'y' && $data['mirrored'] == false) {
        if($server_config['auto_network_configuration'] == 'y' &&
           $data['mirrored'] == false &&
           $server_config['ip_address'] != '0.0.0.0' &&
           $server_config['gateway'] != '0.0.0.0') {
            
            if (is_file('/etc/debian_version')) 
            {