csf status same regardless on or off
Hello.
All over the internet the wisdom to determine if csf is on or off is to run the command:
service csf status
Yet, if I first bring down csf with csf -x and then run that command, I see:
which is the exact output I get if I enable and run the same command. . .
service csf status
Redirecting to /bin/systemctl status csf.service
? csf.service - ConfigServer Firewall & Security - csf
Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; vendor preset: disabled)
Active: active (exited) since Tue 2021-06-08 10:09:55 EDT; 14h ago
Process: 891 ExecStart=/usr/sbin/csf --initup (code=exited, status=0/SUCCESS)
Main PID: 891 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/csf.service
Jun 08 10:09:48 xxxxxx.com systemd[1]: Starting ConfigServer Firewall & Security - csf...
Jun 08 10:09:55 xxxxxx.com systemd[1]: Started ConfigServer Firewall & Security - csf.
Jun 08 10:09:55 xxxxxx.com csf[891]: (restoring ipsets) (restoring iptables) (restoring ip6tables)which is the exact output I get if I enable and run the same command. . .
-
AFAIK command csf -l tells you if csf is on or off (actually if it's enabled or disabled). 0 -
Hi Yo can disable csf using following command csf -x and then check that status of CSf through csf -l 0 -
Hello ! It looks like this occurs as csf -x doesn't fully disable the service but rather disable it in a manner where its IP table configurations no longer take effect. I did, however, find the following commands that may help: [QUOTE] 6. List/Show the IPv4 iptables configuration csf -l Or csf --status 7. List/Show the IPv6 ip6tables configuration csf -l6 Or csf --status6
I hope that this helps! If you have any other questions or concerns, please let us know!0 -
SOLVED: Thanks everyone! That solved the issue. Never would have found that without the excellent input from forum members! Everyone have a great day! 0 -
It was our pleasure! I'll go ahead mark this forum as Solved. Thank you for choosing cPanel! 0 -
Solved 0
Please sign in to leave a comment.
Comments
6 comments