Welcome to Headwind MDM Q&A, where you can ask questions and receive answers from other members of the community.

Please do not post bug reports, missing feature requests, or demo inquiries. If you have such an inquiry, submit a contact form.

0 votes

Hello.

how to change de https port.
the 443 is alreadey use for me and i would like to work on 444 for example.

i see : How to change the default HTTPS port of the remote control server? - Headwind MDM Q&A

but i don't find the config.yaml

by (120 points)
reshown by

1 Answer

0 votes
I recommend looking for the remote-control directory in the user's home directory or in /opt
by (11.7k points)
i talk abour headwind MDM server Version 5.30.1.
sysadmin@vs-mdm:/opt$ dir
hmdm
sysadmin@vs-mdm:/opt$ cd hmdm/
sysadmin@vs-mdm:/opt/hmdm$ dir
cpu_monitor.sh  iptables-tomcat.sh  update-web-app.sh
Remote control is a separate service (Headwind Remote) integrated with Headwind MDM. Are you sure you installed it?

If you mean changing the https port of the MDM control panel:

1. Update the parameter base.url in the XML config file (/var/lib/tomcat9/conf/Catalina/localhost/ROOT.xml), it should be https://your-mdm.com:444 instead of http://your-mdm.com.
Restart Tomcat to apply changes:
service tomcat9 restart

2. remove port forwarding rules:
/sbin/iptables -D PREROUTING -t nat -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443

/sbin/iptables -D OUTPUT -t nat -o lo -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443

3. Add new port forwarding rules:
/sbin/iptables -A PREROUTING -t nat -p tcp -m tcp --dport 444 -j REDIRECT --to-ports 8443

/sbin/iptables -A OUTPUT -t nat -o lo -p tcp -m tcp --dport 444 -j REDIRECT --to-ports 8443
...