CSF firewall CC_DENY / CC_ALLOW problem

Yasham

Verified User
Joined
Feb 3, 2018
Messages
36
hello,
I am trying try to block all countries to make a traffic to port 22 expect Turkey..
but in csf firewall CC_DENY, CC_ALLOW,CC_DENY_PORTS,CC_ALLOW_PORTS not working and dose't do anything no effect at all ..

my settings is:

CC_ALLOW = ""
CC_ALLOW_PORTS = "TR"
CC_ALLOW_PORTS_TCP = "22"
CC_ALLOW_PORTS_UDP = "22"

CC_DENY = ""
CC_DENY_PORTS = ""
CC_DENY_PORTS_TCP = ""
CC_DENY_PORTS_UDP = ""

Is there a solution for this problem ..
 
Did you restart CSF after making the changes?

Also, did you enable CC_LOOKUPS in the firewall?
 
Did you remove port 22 from the original "TCP_IN= " to create the restriction?
You need to do that.
After that, restart CSF and LFD and your configuration for port 22 should work if all is correct.
 
Did you remove port 22 from the original "TCP_IN= " to create the restriction?
You need to do that.
After that, restart CSF and LFD and your configuration for port 22 should work if all is correct.


thanks this soluation is work very well :)
 
Back
Top