Change/Redirect http and https Port
-
Introduction:
I'm unable to forward Port 443 or Port 80 in my Home Network. I have cloudron Running on Ubuntu wich is a vm by Truenas Scale. I've seen another Post from 2022 that also wants to change the Port, but it looks like that it is Hard coded. Can I somehow take the local Ports 443 and 80 to another local Port? It would look smth like this: Port 443 would get forwarded to Port 102 on the same machine and Port 80 to 99 also on the same machine. Then I would be able to open my local Ip adress (for example 1.2.3.4) and go either to https://1.2.3.4:102 or https://1.2.3.4 to access to acces the https site. Same would go for http. Then I cloud forward the new Ports (102 and 99) to the Internet. If my Public Ip would be 12.34.56.78 the I cloud go to 12.34.56.78:102 to acces the normal https site.
Question:
Is there any way to do that in ubuntu, or my router (I would prefer if it would work from ubuntu)?
Thanks in Advance
-R