-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add firewall section to check-config.sh #13234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Derek Nola <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13234 +/- ##
==========================================
- Coverage 21.87% 21.76% -0.12%
==========================================
Files 186 186
Lines 15202 15284 +82
==========================================
+ Hits 3325 3326 +1
- Misses 11438 11519 +81
Partials 439 439
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Derek Nola <[email protected]>
manuelbuil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add TCP/UDP context to avoid confusion, otherwise lgtm!
| done | ||
|
|
||
| for port in $blocked_tcp_ports; do | ||
| wrap_bad " - Port $port is blocked" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| wrap_bad " - Port $port is blocked" | |
| wrap_bad " - TCP Port $port is blocked" |

Signed-off-by: Derek Nola [email protected]
Proposed Changes
Anther take on #12847, placing firewall checks inside the check-config.sh script. Looks for ufw and firewalld. This approach should work better at balancing "does every user need this" with "people want an easy way to check" for firewall statuses.
Also fixed a random nit around how apparmor status was printing
Removed a 6 year old unused section of the check-config.sh
Types of Changes
Utility Script Improvements
Verification
./contrib/util/check-config.shon Ubuntu (with and without ufw rules) and on Rocky 9 (with and without firewalld rules)Testing
Linked Issues
User-Facing Change
Further Comments