Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
b044dda2
Commit
b044dda2
authored
Jul 29, 2016
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
put the ufw status checks in the network section, add a punctuation mark, add changelog entry
parent
f66f39b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
status_checks.py
management/status_checks.py
+3
-2
No files found.
CHANGELOG.md
View file @
b044dda2
...
...
@@ -13,6 +13,7 @@ Control panel:
*
The users and aliases APIs are now documented on their control panel pages.
*
The HSTS header was missing.
*
New status checks were added for the ufw firewall.
System:
...
...
management/status_checks.py
View file @
b044dda2
...
...
@@ -167,7 +167,6 @@ def run_system_checks(rounded_values, env, output):
check_system_aliases
(
env
,
output
)
check_free_disk_space
(
rounded_values
,
env
,
output
)
check_free_memory
(
rounded_values
,
env
,
output
)
check_ufw
(
env
,
output
)
def
check_ufw
(
env
,
output
):
ufw
=
shell
(
'check_output'
,
[
'ufw'
,
'status'
])
.
splitlines
()
...
...
@@ -180,7 +179,7 @@ def check_ufw(env, output):
output
.
print_error
(
"Port
%
s (
%
s) should be allowed in the firewall, please re-run the setup."
%
(
service
[
"port"
],
service
[
"name"
]))
if
not_allowed_ports
==
0
:
output
.
print_ok
(
"Firewall is active"
)
output
.
print_ok
(
"Firewall is active
.
"
)
else
:
output
.
print_warning
(
"""The firewall is disabled on this machine. This might be because the system
is protected by an external firewall. We can't protect the system against bruteforce attacks
...
...
@@ -260,6 +259,8 @@ def run_network_checks(env, output):
output
.
add_heading
(
"Network"
)
check_ufw
(
env
,
output
)
# Stop if we cannot make an outbound connection on port 25. Many residential
# networks block outbound port 25 to prevent their network from sending spam.
# See if we can reach one of Google's MTAs with a 5-second timeout.
...
...
Write
Preview
Markdown
is supported
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