CSF: Remove port 22/2222 when those ports are changed?

zakazak

Verified User
Joined
Dec 20, 2018
Messages
59
Hi everyone,
I have changed my SSH port as well as my DA port to something else than 22 / 2222.
Is it safe to remove those ports from the csf firewall configuration then?
Thanks!
 
yes, you can also add your current IP to allowed - so for you all ports will be visible.
then you can try connect from different IP to be sure all works fine.
Also don't forget to change ssh port in CSF so it will monitor it instead of old 22
 
yes, you can also add your current IP to allowed - so for you all ports will be visible.
then you can try connect from different IP to be sure all works fine.
Also don't forget to change ssh port in CSF so it will monitor it instead of old 22

Thanks!

Basically I changed:
  • directadmin.conf (port=customport)
  • sshd_config (change SSH port)
  • csf.conf (change tcp_in / tcp_out / tcp6_in / tcp6_out and directadmin_port)
 
Back
Top