IP Blocking

Sammes

Verified User
Joined
Aug 17, 2020
Messages
7
Location
Nederland
Hi,

I am a little bit new as an administrator for DirectAdmin. I've installed it on a VPS and it works fine, the only thing what annoys me a lot is that my IP very fast get blocked, with the result I can't connect to my ControlPanel neither to my hosted site. Does anyone have a idea how to fix this?

Thanks in advance,
Sam
 
Yes, best is to find out via the logs as to why it gets blocked every time.
If CSF is installed, go to /etc/csf and edit csf.allow and csf.ignore and add your ip there.

Also you can add it to the /usr/local/directadmin/data/admin/ip_whitelist file, you have to create it if it doesn't exist yet.
 
Thanks for the information. CSF is installed, is it also possible to add an IPv6 ip? or do I need to change some configuration for that?
 
If ipv6 is enabled then CSF should be able to work with it. You can either enter it manually or use the csf -a command to allow it.
Maybe best is first to use the csf -a command, so you will see it throw an error if someting's wrong.

Check your csf.conf for the IPV6 section first like:
IPV6 = "1"
and others you might want to configure.
Save and restart csf and lfd first after making changes.
 
Thanks, I enabled IPv6 and added the IP. It worked! Thanks for the help, hoping I won't get blocked anymore. =]
 
You're welcome.
But remind to check the logs if you can find a reason for the block. Maybe something is setup too strict.
 
Back
Top