How to block access to pannel

chelssi

Verified User
Joined
Aug 2, 2019
Messages
34
Hi,

I'm trying to block access to Direct Admin pannel for everyone except my ip, I'm trying including in /etc/hosts.allow the next:

directadmin : xxx.xxx.xxx.xxx: allow
directadmin : ALL : deny

This doesn't work, am I writting the daemon wrong? is there any other way to do this, I have installed CSF.

Thanks
 
Hello,

1. Remove 2222 port from /etc/csf/csf.conf in lines TCP_IN and TCP6_IN.
2. Add your IP in /etc/csf/csf.allow
3. restart csf
 
Great zEitEr, works!!!!

I still have port 2222 in TCP_OUT, do I keep it or remove it?

Thank you
 
Back
Top