gravitl / netmaker

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

ports occupied and how to port forward #151

Closed tompatulpan closed 3 years ago

tompatulpan commented 3 years ago

Hi, Im trying to setup netmaker on a local server for testing using the docker image. port 80 and 53 are occupied to another local server.

Iv tried some different yaml configs but have not tottaly succeeded.

ports:
  - "8880:80"
environment:
  BACKEND_URL: "http://my-ip:8881"
ports:
  - "8853:53/udp"

firewall port forward my-ip:8881 -> local-ip:8880 ?? my-ip:8853 -> local-ip:8853 ??

Always a bit confusing doing this to me, so any help would be much appropriated!

afeiszli commented 3 years ago

Hi @tompatulpan that looks right but depends on some other factors as well. Can you please share the full docker-compose file?

I would also not recommend running DNS on a non-53 port. While it will run, I have not succeeded in getting machines to successfully use a nameserver that isn't running on 53. But if you know a good way to do it, I'd like to hear it!

tompatulpan commented 3 years ago

Ok, thanks for the tip and answer! I did run the your default docker file without any changes.

afeiszli commented 3 years ago

What are the errors you encountered? Can you post any logs?

afeiszli commented 3 years ago

Closing without response.