Change/Redirect http and https Port
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 188.8.131.52) and go either to https://184.108.40.206:102 or https://220.127.116.11 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 18.104.22.168 the I cloud go to 22.214.171.124:102 to acces the normal https site.
Is there any way to do that in ubuntu, or my router (I would prefer if it would work from ubuntu)?
Thanks in Advance