and I can't access WebUI via 192.168.0.30:51821 which is my server's IP in my LAN. only can access via public domain (and I don't want expose WebUI on WAN, this is only for ddns)
\nwhich setting should I edit?
\nsetting I already try:
\nnetwork_mode bridge or host
\nports 51821:51821 or 127.0.0.1:51821:51821
With this config:
\n - 127.0.0.1:51821:51821
\nIt's expected you would not be able to reach the WebUI at 192.168.0.30 (the binding is done strictly with the host's loopback address).
You should be able to reach it at 192.168.0.30 with this config (binding done with 0.0.0.0):
\n - 51821:51821
What method are you using to forward traffic from the internet to the docker host where wg-easy is running on?
\nWithout that additional info, I can't really tell whether or not this config below would achieve what you want:
\n - 192.168.0.30:51821:51821
Network_mode bridge typically would be sufficient, but using \"bridge\" or \"host\" depends on how you want to expose container ports, which other containers you are running and how you want to isolate them from each other (and on the local network).
\nSince you did not declare a network explicitly in the compose file, bridge is the mode being employed right now.
","upvoteCount":1,"url":"https://github.com/wg-easy/wg-easy/discussions/1527#discussioncomment-11336100"}}}-
Host on Portainer (Stack)
and I can't access WebUI via 192.168.0.30:51821 which is my server's IP in my LAN. only can access via public domain (and I don't want expose WebUI on WAN, this is only for ddns) which setting should I edit? |
Beta Was this translation helpful? Give feedback.
-
With this config: You should be able to reach it at 192.168.0.30 with this config (binding done with 0.0.0.0): What method are you using to forward traffic from the internet to the docker host where wg-easy is running on? Network_mode bridge typically would be sufficient, but using "bridge" or "host" depends on how you want to expose container ports, which other containers you are running and how you want to isolate them from each other (and on the local network). Since you did not declare a network explicitly in the compose file, bridge is the mode being employed right now. |
Beta Was this translation helpful? Give feedback.
With this config:
- 127.0.0.1:51821:51821
It's expected you would not be able to reach the WebUI at 192.168.0.30 (the binding is done strictly with the host's loopback address).
You should be able to reach it at 192.168.0.30 with this config (binding done with 0.0.0.0):
- 51821:51821
What method are you using to forward traffic from the internet to the docker host where wg-easy is running on?
Without that additional info, I can't really tell whether or not this config below would achieve what you want:
- 192.168.0.30:51821:51821
Network_mode bridge typically would be sufficient, but using "bridge" or "host" depends on how you want to expose container ports, which other containers you a…