Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Timothy Frew
Sympl
Commits
d7e73b51
Commit
d7e73b51
authored
Nov 09, 2010
by
Steve Kemp
Browse files
--flush always works
parent
c6403d31
Changes
2
Hide whitespace changes
Inline
Side-by-side
firewall/bin/firewall
View file @
d7e73b51
...
...
@@ -334,26 +334,17 @@ foreach my $entry (@outgoing)
#
# Is the firewall disabled?
#
if
(
-
e
"
/etc/symbiosis/firewall/disabled
"
)
{
unlink
(
$tempfile
);
unlink
(
$CONFIG
{
'
lock
'
}
);
exit
;
}
#
# Flush the existing rules.
# Flush the existing rules - unless we shouldn't.
#
flushAllRules
()
unless
(
$CONFIG
{
'
no-flush
'
}
);
#
# Did the user just want to flush the rules? If so exit now
# Now if the firewall is disabled, or the user requested a flush
# then we'll do that and exit.
#
if
(
$CONFIG
{
'
flush
'
}
)
if
(
(
$CONFIG
{
'
flush
'
}
)
||
(
-
e
"
/etc/symbiosis/firewall/disabled
"
)
)
{
unlink
(
$tempfile
);
unlink
(
$CONFIG
{
'
lock
'
}
);
...
...
firewall/debian/changelog
View file @
d7e73b51
symbiosis-firewall (2010:1109) stable; urgency=low
* Always allow --flush to succeed.
-- Steve Kemp <steve@bytemark.co.uk> Tue, 9 Nov 2010 17:18:19 +0000
symbiosis-firewall (2010:0915) stable; urgency=low
* Don't re-run the firewall unless we've genuinely removed
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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