Hi,
I have such a basic question, I tried to find similar one in the forum but I haven’t succeed, so I am entering a new topic, sorry for the noise if it have been already answered before. My router is connected to WAN within a L2TP tunnel and it gives me a fixed IP address (lets say 1.2.3.4). I have some port forwarding configuration for remote access as follows:
chain=dstnat action=dst-nat to-addresses=192.168.1.2 to-ports=1194 protocol=udp in-interface=l2tp_if dst-port=1194 log=no log-prefix=""
chain=dstnat action=dst-nat to-addresses=192.168.1.2 to-ports=443 protocol=tcp in-interface=l2tp_if dst-port=443 log=no log-prefix=""
And it works pretty well while I try to access from a remote site. I can access to my HTTPS server with https://1.2.3.4/myweb, which is great. However I would like to use the same URL inside my LAN, now it happens that inside my LAN the URL is https://192.168.1.2/myweb and from a remote access is https://1.2.3.4/myweb, and I would like to use it always with the public URL. I think someting like the following could do the trick:
chain=dstnat action=dst-nat to-addresses=192.168.1.2 to-ports=443 protocol=tcp in-interface=eth1 dst-port=443 log=no log-prefix=""
Where eth1 is the LAN interface with 192.168.1.1 IP. Do you thing something like that would do the trick, or there is another better way to handle that?
Thanks in advance for any hint and merry Christmas ![]()
Deivit