Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
c92c979c
Commit
c92c979c
authored
Aug 28, 2012
by
tbrehm
Browse files
Implemented: FS#2000 - Remove 192.168.x defaults from network configuration settings.
parent
76e17dd1
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/tpl/server.ini.master
View file @
c92c979c
...
...
@@ -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
...
...
server/plugins-available/network_settings_plugin.inc.php
View file @
c92c979c
...
...
@@ -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'
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment