I know this question has been asked many times before. I do think I implemented it right but it doesn't work yet.
I want only one IP address to be able to login to direct admin. So I added this line to csf.allow
tcp|in|d=2222|s=ip adress I use and restarted csf and lfd but it doesnt work.
My understanding was that csf.allow works the opposite of the csf.deny . csf.deny file for blocking specific IP's and allow all others, csf.allow allow only listed IP's and deny everything else.
So when I put this line in csf.allow all IP addresses are blocked for port 2222 but the one I added?
So I added an ip address to it which is not mine and I expected that I couldn't login to direct admin (of course I had an ssh session open). But I can still login.
My IP adress isn't in the csf.ignore file also
What do I not understand and do wrong?
Thanks in advance!
I want only one IP address to be able to login to direct admin. So I added this line to csf.allow
tcp|in|d=2222|s=ip adress I use and restarted csf and lfd but it doesnt work.
My understanding was that csf.allow works the opposite of the csf.deny . csf.deny file for blocking specific IP's and allow all others, csf.allow allow only listed IP's and deny everything else.
So when I put this line in csf.allow all IP addresses are blocked for port 2222 but the one I added?
So I added an ip address to it which is not mine and I expected that I couldn't login to direct admin (of course I had an ssh session open). But I can still login.
My IP adress isn't in the csf.ignore file also
What do I not understand and do wrong?
Thanks in advance!