Configuring custom http port for IDSTower¶
By default IDSTower runs on port 80 when using http and port 443 when using https, in order to change the port to a custom port, follow the below steps:-
Edit the appsettings.json file located at /opt/idstower/appsettings.json
Change the port in the Hosting->URL section to the desired port, for example to change the port to 8080, the section should look like this:-
"URL": "http://your-server-ip:8080",
Restart IDSTower service to apply the changes
$ sudo systemctl restart idstower.service
Verify that IDSTower service is running correctly:
$ sudo systemctl status idstower.service
Make sure your firewall allows the new port:
on Ubuntu:
$ sudo ufw allow 8080/tcp
$ sudo ufw reload
on CentOS\RHEL:
$ sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
$ sudo firewall-cmd --reload
$ sudo systemctl restart firewalld
Access IDSTower using the new port, for example: http://your-server-ip:8080