Suggest a way/ways how to set up a router if a server with public domain is behind it
By default, it is possible to connect to a domain located in the same LAN only by adding *.lan
. It may be an easy way to set it smoother for a user (usable for example for some CTI users). To add this sort of how-to was suggested by @vcunat and later on by a user even to set it up by default:
after searching for hours - I was not able to setup the firewall rules accordingly.
The most simple solution is
Adding static address records
Extend section config resolver 'kresd' of /etc/config/resolver by
list hostname_config '/etc/hosts'
Why is this not enabled by default? ...
It looks like there can be basically two ways.
- IP based: traffic routed to an external IP (NAT WAN) re-route to the LAN IP address of the server. (According to @vcunat probably the cleaner way)
- DNS based: for the LAN devices to return the LAN IP address.