CSF Firewall Config
Hi,
Apologies if this is the wrong place to post this; I know there's a forum over at CSF website for it, but I'm really stuck and was hoping someone here could help.
I'm having trouble getting CSF firewall to work...
My understanding is that the default behaviour is block/deny all. However this doesn't seem to be happening.
In csf.allow I have:
my.ip.address.here
And then I want to "Block all other access to port 22 / ssh"
I would have expected this to work by default if the default is deny all but nope.
I added the following to csf.deny:
tcp|in|d=22|s=0.0.0.0
And still I can SSH in from another IP
And if I add:
0.0.0.0/22
Again I can still SSH from another IP
I can only block IPs by using:
0.0.0.0/0
However this blocks ALL ports, so the end user cannot even see port 80/website.
Ultimately I want to:
Allow anyone to see port 80 and 433
Block everyone apart from my IPs on port 22 and 21
Any advice, most appreciated.
Many thanks
-
Hi I did not know that was built in - feel stupid now. That's much better, thank you! 0 -
I'm happy to see that feature is helpful. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
3 comments