How to Open Port in CSF Firewall

csf

How to Open Port in CSF Firewall

 

Login to your dedicated server with root

Add the following lines in your /etc/csf/csf.allow:

tcp:in:d=XXXX:d=aa.bb.cc.dd
tcp:out:d=XXXX:d=aa.bb.cc.dd

Where is XXXX port number, aa.bb.cc.dd -IP

For example:

tcp:in:d=22=192.168.0.100

 

Then run:

# csf -r

 

arstech