mirror of
https://github.com/vernu/vps-audit.git
synced 2025-01-23 05:24:58 +03:00
Merge pull request #20 from aafmj/fix-check-ufw-activeness
fix check status of ufw
This commit is contained in:
commit
6ae89e1bdd
@ -166,7 +166,7 @@ fi
|
|||||||
# Check Firewall Status
|
# Check Firewall Status
|
||||||
check_firewall_status() {
|
check_firewall_status() {
|
||||||
if command -v ufw >/dev/null 2>&1; then
|
if command -v ufw >/dev/null 2>&1; then
|
||||||
if ufw status | grep -q "active"; then
|
if ufw status | grep -qw "active"; then
|
||||||
check_security "Firewall Status (UFW)" "PASS" "UFW firewall is active and protecting your system"
|
check_security "Firewall Status (UFW)" "PASS" "UFW firewall is active and protecting your system"
|
||||||
else
|
else
|
||||||
check_security "Firewall Status (UFW)" "FAIL" "UFW firewall is not active - your system is exposed to network attacks"
|
check_security "Firewall Status (UFW)" "FAIL" "UFW firewall is not active - your system is exposed to network attacks"
|
||||||
|
Loading…
Reference in New Issue
Block a user