Before switching to MT, I was able to port forward a web server, and access it via my public IP: http:mywebsite.com:40399
After I switched to MT, I went to IP > Firewall > NAT , and set up the below, which let's me access the web server from outside my network:
add action=dst-nat chain=dstnat comment=web-server dst-port=40399 protocol=tcp to-addresses=192.168.1.9
to-ports=80
I was looking around and saw that this may be called a "hairpin nat" ? I messed around with some rules and added this, which works, but I want to know if this is correct and the best way to achieve what I want to do:
add action=src-nat chain=srcnat comment="Hairpin NAT to for motioneye" dst-address=192.168.1.9 src-address=192.168.1.0/24 to-addresses=*my_public_ip_here*