Open imightbelosthere opened 1 year ago
netclient 0.21.0 behaves the same way. It's a pain. I try to connect to some hosts in the same local area network but can't because Netmaker only works with hosts with a different public IP. So I need to write a script for always leaving the Netmaker network and deleting all host entries when I'm in my home network where my server is located.
Please fix that or make Netmaker work over local area networks.
I found a solution. You simply need to create a bridge over the Netmaker server. When I want to access a host in my network over the DNS name like I would by being connected to a network from Netmaker I use the DNS server from Netmaker as local DNS server and connect to Netmaker via Wireguard.
This is how I did it:
netclient:
container_name: netclient-dns-server
image: 'gravitl/netclient:v0.21.0'
network_mode: "service:coredns"
depends_on:
- coredns
restart: always
privileged: true
environment:
TOKEN: my-token
volumes:
- ./netclient-data:/etc/netclient
Now you can access all hosts in that network over the DNS name like you would with Netclient if you were behind another NAT.
netclient v0.18.6 installed with service running and everything properly configured as far as I can see, however the Egress node routes published upon connection established do not get removed after disconnection. This causes the machine to lose connectivity to the IP ranges published by the Egress node when the netclient is not connected.