In csf.allow i have put this
Code: Select all
tcp|in|d=5080|s=x.x.x.x.x
then used a proxy and asked my few friends everyone is able to access what is the reason behind this ?
Code: Select all
tcp|in|d=5080|s=x.x.x.x.x
Yes, this port is in tcp_in as well as in tcp6_inSergio wrote:What are your TCP / IN ports in CSF configuration? Does the port 5080 appears on that line?
I have done what you said.Sergio wrote:ok, in order for only 1 IP to access that port, you should not write the port in the TCP / IN.
The reason is that any port that you wrote in your TCP IN is allowed to be accessed by any IP, so, if you don't write that port it means that the port is closed for everyone and that is why you use the:
tcp|in|d=5080|s=x.x.x.x.x
in csf.allow to let that only IP to access the port.
So, delete the port 5080 from the TCP / IN and try again.
You can read all the info inside CSF.CONFIG there is a lot of interest info.hazhayder wrote: I have done what you said.
Now no one is able to connect to that port even that IP which is allowed to connect.
Also whenever i try to access this port via browser it says "Connection Timeout".
As per my knowledge if port is blocking other IPs it must say "Connection Refused"