Commit c92c979c authored by tbrehm's avatar tbrehm
Browse files

Implemented: FS#2000 - Remove 192.168.x defaults from network configuration settings.

parent 76e17dd1
......@@ -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
......
......@@ -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'))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment