Hello, I've my own server which is hosting gitlab docker.
My docker forwards internally ports like this:
- "8080:80"
- "8443:443"
With usage DNS tab I set docker.local internal domain and forwards it to server ip(see attachment).
In browser when I get to docker.local:8080 I get my docker. This works fine.
Troubles starts when I try to forward internally port 80 to 8080 so I could type docker.local and don't worry about port anymore.
I get into console and add nat rules
/ip firewall nat add chain=dstnat dst-port=80 action=dst-nat protocol=tcp to-address=192.168.xxx.xxx to-port=8080
/ip firewall nat add chain=dstnat dst-port=443 action=dst-nat protocol=tcp to-address=192.168.xxx.xxx to-port=8443
/ip firewall nat add chain=srcnat src-address=192.168.xxx.0/24 dst-address=192.168.xxx.xxx action=masquerade out-interface=bridge
Then in the browser after typing dockers ip or just docker.local I receive "403 Forbidden" output in the browser. If I add 8080 port it works just fine.
What else I could do to fix this? I was thinking that maybe it's gitlab dockers fault, but can't prove that.
Additional question(I found on the forum that zero tier doesn't provide web hosting, but is there a way to create public ip adress so I could move server far away, plug into internet and my webpage could be accessed from the internet?)