Pitmaster
(Nico Berg)
March 22, 2018, 8:08pm
1
NethServer Version: 7.4
Module: WebUI
Dear people, I have ns7 2 times running in my network. How can I change the portnumber the webUI running on off one off the 2 servers?
I found httpd.conf but the header tells me explicit not to change that file. So, how do I change the portnumber?
Thx in advance, Pitmaster
danb35
(Dan)
March 22, 2018, 8:38pm
3
config setprop httpd-admin TCPPort 981
(substitute 981 with whatever port you want) followed by signal-event nethserver-httpd-admin-update
would do the trick.
3 Likes
Pitmaster
(Nico Berg)
March 22, 2018, 9:02pm
4
No it doesn’t. I can’t find the page ad all anymore.
Pit
danb35
(Dan)
March 22, 2018, 9:37pm
5
You can’t load the page at all? What’s the output of config show httpd-admin
on that machine?
mrmarkuz
(Markus Neuberger)
March 22, 2018, 9:39pm
6
I think you just need a
signal-event firewall-adjust
to open the right port on firewall…
signal-event nethserver-httpd-admin-update
does not restart the firewall but is needed to reconfigure the service.
3 Likes
Pitmaster
(Nico Berg)
March 22, 2018, 10:23pm
7
Thats it! Great, I am very used to Ubuntu but I will learn fast with teachers like you.
Pit
davidep
(Davide Principi)
March 23, 2018, 6:43am
8
Hi @pitmaster the solution above works for sure but I still don’t get why the port change is needed… As the services run on different IPs there’s no conflict. Isn’t it?
If I want to reach the internal services from the outside I could set up a couple of port forwarding rules in the network firewall.
Pitmaster
(Nico Berg)
March 23, 2018, 7:00am
9
I just have one external ip, when a package arrives on this adres the router doesn’t know wich of the two internal ip’s he has to choose.
Verzonden met mijn Windows Phone
davidep
(Davide Principi)
March 23, 2018, 8:46am
10
Please consider this approach:
external_ip:980
forwards to internal_host0:980
external_ip:981
forwards to internal_host1:980
1 Like
danb35
(Dan)
March 23, 2018, 10:18am
11
…or better yet, connect via VPN and don’t expose the server manager to the Internet at all.
2 Likes