diff --git a/install/tpl/server.ini.master b/install/tpl/server.ini.master index e745a32de9420236bfae04262eb2b0516e2532b8..f9deca3773ed56795f14c795802d42988e91dc52 100644 --- a/install/tpl/server.ini.master +++ b/install/tpl/server.ini.master @@ -6,11 +6,11 @@ dnsserver=mydns [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 diff --git a/server/plugins-available/network_settings_plugin.inc.php b/server/plugins-available/network_settings_plugin.inc.php index b711139dd1f9907c6178d939ad01aa53d02ad1c9..8355d9e6d348699f40c99c14a63f542c6bf02172 100644 --- a/server/plugins-available/network_settings_plugin.inc.php +++ b/server/plugins-available/network_settings_plugin.inc.php @@ -81,7 +81,10 @@ class network_settings_plugin { //* 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')) {