CSF problem

paksociety

Verified User
Joined
Jul 11, 2013
Messages
89
I have a problem with CSF, it hangs my some ports for example i installed varnish on port 8080 and allow it in csf, but when i open port after some time i got an error of server not responding, plus i change port for ssh, when i start ssh i gives me conection refused error, but when i restart iptables problem solved. please tell me what to do so that problm never comes again??
plus i want to redirect port 80 to port 8080 what should be done so that if iptables restarts redirection is there, nd i dont have to add it manualy every time.

Regards
 
You could add the port 80 forwarding as a iptables rule in /etc/csf/csfpost.sh

As for your SSH.
You have to change your port for example to port 22000 in /etc/ssh/sshd_config and restart SSH.
Before that, open port 22000 in csf incoming and also outgoing. Also, leave the port 22 settings incoming and outgoing open in the csf port lines, just to be sure. Or only disable port 22 incoming.
Bruteforces should be blocked automatically anyway because nothing is running on port 22 anymore.

Seems you're not running DA though, because DA runs apache on port 80.
 
Back
Top