run docker app as hostname from wireguard peer
Posted: Fri Mar 15, 2024 2:14 am
Hello to everyone,
I would like to know how to setup my MK Hex S router to be able to run from the WireGuard peer a docker instance located on a server (Synology NAS) using the docker app hostname instead of the app local server IP:port.
I have the MK router running WireGuard; this router is behind the ISP modem which is in bridge mode; also the MK router does have a static public IP assigned form ISP.
This docker app does have a hostname on the Synology so when on the local LAN I can start the app both writing on the browser the Synology LAN ip and the docker app designated port OR just write on the browser the hostname. For example on this scenario I write on browser http://192.168.88.2:12101 or http://fs23a01 and then in both cases I can run the same docker app.
But when I connect to the WireGuard (configured on the MK router) I can access from the VPN the docker app whit the NAS local IP as above (http://1982.168.88.2:12101) but I cannot do the same whit the hostname http://fs23a01, because the browser is not resolving the hostname. I guess this because in this last case I'm connecting to the MK router public IP instead of the local and I have no idea how to configure the MK to do the same as when I'm local.
This docker hostname has been setup on the Synology NAS web station add-on package:https://www.synology.com/en-global/dsm/ ... WebStation
I would like to start the docker app when on WireGuard tunnel using the hostname because It is much easier to remember this, instead of the lan IP and port.
I'm including my MK router configuration and some Synology and browser screen capture. Synology NAS hostname config Docker app from hostname (local only) Docker app from LAN Please if someone can give me some help to this ir would be much appreciated.
Sincerely,
Enrico
I would like to know how to setup my MK Hex S router to be able to run from the WireGuard peer a docker instance located on a server (Synology NAS) using the docker app hostname instead of the app local server IP:port.
I have the MK router running WireGuard; this router is behind the ISP modem which is in bridge mode; also the MK router does have a static public IP assigned form ISP.
This docker app does have a hostname on the Synology so when on the local LAN I can start the app both writing on the browser the Synology LAN ip and the docker app designated port OR just write on the browser the hostname. For example on this scenario I write on browser http://192.168.88.2:12101 or http://fs23a01 and then in both cases I can run the same docker app.
But when I connect to the WireGuard (configured on the MK router) I can access from the VPN the docker app whit the NAS local IP as above (http://1982.168.88.2:12101) but I cannot do the same whit the hostname http://fs23a01, because the browser is not resolving the hostname. I guess this because in this last case I'm connecting to the MK router public IP instead of the local and I have no idea how to configure the MK to do the same as when I'm local.
This docker hostname has been setup on the Synology NAS web station add-on package:https://www.synology.com/en-global/dsm/ ... WebStation
I would like to start the docker app when on WireGuard tunnel using the hostname because It is much easier to remember this, instead of the lan IP and port.
I'm including my MK router configuration and some Synology and browser screen capture. Synology NAS hostname config Docker app from hostname (local only) Docker app from LAN Please if someone can give me some help to this ir would be much appreciated.
Sincerely,
Enrico