Change DA port not working (2 instances)

peps03

Verified User
Joined
Oct 24, 2013
Messages
191
Location
Amsterdam
Hi,

I'm trying to change the DA port on some new instances I just created at the VPS hosting company. Very first thing I'm trying to do is change the port:
nano /usr/local/directadmin/conf/directadmin.conf
port=xxxx
Save changes
systemctl -l restart directadmin.service

Normally I manage within seconds. Easy task.

Directadmin becomes unreachable on new port, both via hostname:xxxx and ip:xxxx.
Firewall has the port open to my IP.

Changing back to :2222 instantly works. Last week I hand the same issue on another vps.

Any ideas? Is there a bug?
Thanks!
 
Hmm found the reason. Didn't know the CentOS firewall was active by default. Opening the port too on the instance firewall solved it. For anyone else running into this:

firewall-cmd --add-port=XXXX/tcp --permanent
 
Back
Top