gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: CoreDNS - cannot assing requested address #2782

Closed WoMec closed 8 months ago

WoMec commented 8 months ago

Contact Details

vomacka.j@gmail.com

What happened?

Install on fresh Ubuntu 22.04, server is running behind reverse proxy. Installation script hangs on Caddy testing. Logs shows correct certificate assignment, but coreDNS container keeps restarting. Probably because it wants to listen on public IP, on on private IP of server.

Version

v0.22.0

What OS are you using?

Linux

Relevant log output

root@netmaker:~# docker logs coredns
Listen: listen tcp *my_public_IP*:53: bind: cannot assign requested address
Listen: listen tcp *my_public_IP*:53: bind: cannot assign requested address
Listen: listen tcp *my_public_IP*:53: bind: cannot assign requested address
Listen: listen tcp *my_public_IP*:53: bind: cannot assign requested address

Contributing guidelines

klucsik commented 8 months ago

Have same issue. My install running behind an HAProxy as I want to save up on nodes. Moved http/s port to differnet port in the compose.yaml, and used HAproxy to forward traffic to these ports (to Caddy basically) based on hostname

klucsik commented 8 months ago

If you use similar setup as me, dont forget that the mqtt broker in netclient needs websocket conection, and you probably need to update your reverse proxy to accomodate that

abhishek9686 commented 8 months ago

@WoMec @klucsik coredns issue has been fixed, the v0.22.0 image has been patched with this fix, please pull newer version of netmaker image and try it

abhishek9686 commented 8 months ago

follow this doc for successful coredns setup https://docs.netmaker.io/architecture.html#coredns

klucsik commented 8 months ago

@abhishek9686 new image is working well