I want to block all IPs except those you whitelisted to access Cyberpanel. How can I do that?
Also can I do the same in my ubuntu 20.04 server with root access?
Welcome @Vihamsi Happy you are here
Use CSF
Install csf here https://SERVER_URL:8090/firewall/csf
Run csf -a SERVER_URL
e.g. csf -a 198.100.12.342
Deny all ip addresses from accessing the server
csf -d 0.0.0.0/0 -d in "block all inbound connections permanently"
csf -r