Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
006b572c
Commit
006b572c
authored
Mar 08, 2014
by
Till Brehm
Browse files
Fixed: FS#3127 - Firewall not fully disabled when the rule set is removed in ispconfig
parent
4887d4e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/firewall_plugin.inc.php
View file @
006b572c
...
...
@@ -257,10 +257,12 @@ class firewall_plugin {
}
exec
(
$conf
[
'init_scripts'
]
.
'/'
.
'bastille-firewall restart 2>/dev/null'
);
if
(
@
is_file
(
'/etc/debian_version'
))
exec
(
'update-rc.d bastille-firewall defaults'
);
if
(
@
is_file
(
'/sbin/insserv'
))
exec
(
'insserv -d bastille-firewall'
);
$app
->
log
(
'Restarting the firewall'
,
LOGLEVEL_DEBUG
);
}
else
{
exec
(
$conf
[
'init_scripts'
]
.
'/'
.
'bastille-firewall stop 2>/dev/null'
);
if
(
@
is_file
(
'/etc/debian_version'
))
exec
(
'update-rc.d -f bastille-firewall remove'
);
if
(
@
is_file
(
'/sbin/insserv'
))
exec
(
'insserv -r -f bastille-firewall'
);
$app
->
log
(
'Stopping the firewall'
,
LOGLEVEL_DEBUG
);
}
...
...
@@ -272,6 +274,7 @@ class firewall_plugin {
exec
(
$conf
[
'init_scripts'
]
.
'/'
.
'bastille-firewall stop 2>/dev/null'
);
if
(
@
is_file
(
'/etc/debian_version'
))
exec
(
'update-rc.d -f bastille-firewall remove'
);
if
(
@
is_file
(
'/sbin/insserv'
))
exec
(
'insserv -r -f bastille-firewall'
);
$app
->
log
(
'Stopping the firewall'
,
LOGLEVEL_DEBUG
);
}
...
...
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