netmaker
netmaker copied to clipboard
[Bug]: Host can't connect to netmaker when connected to a VPN.
Contact Details
No response
What happened?
My RPI4 is routed through a VPN (AirVPN) via my Openwrt router (policy routing).
When trying to connect via the VPN the sign-in times out. When trying to connect without the VPN the sign in works correctly.
What I want to achieve is to connect to Netmaker while also being behind a VPN. With Tailscale it works but not with Netmaker.
Anyone knows what's going on? Thanks
Version
v0.21.0
What OS are you using?
Linux
Relevant log output
root@DietPi:/docker/servers/netmaker-client# docker compose up
[+] Running 2/2
✔ Network netmaker-client_default Created 0.5s
✔ Container netclient Recreated 0.1s
Attaching to netclient
netclient | [netclient] joining network
netclient | [netclient] 2023-09-18 08:45:40 registration failed Post "https://api.nm.ip.nip.io/api/v1/host/register/tokenxxx": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
netclient | [netclient] Starting netclient daemon
netclient | daemon called
netclient | [netclient] 2023-09-18 08:45:41 Starting firewall...
netclient | [netclient] 2023-09-18 08:45:41 iptables is supported
netclient | [netclient] 2023-09-18 08:45:41 adding forwarding rule
netclient | [netclient] 2023-09-18 08:45:41 adding addresses to netmaker interface
netclient | [GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
netclient |
netclient | [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
netclient | - using env: export GIN_MODE=release
netclient | - using code: gin.SetMode(gin.ReleaseMode)
netclient |
netclient | [GIN-debug] GET /status --> github.com/gravitl/netclient/functions.status (3 handlers)
netclient | [GIN-debug] POST /register --> github.com/gravitl/netclient/functions.register (3 handlers)
netclient | [GIN-debug] GET /network/:net --> github.com/gravitl/netclient/functions.getNetwork (3 handlers)
netclient | [GIN-debug] GET /allnetworks --> github.com/gravitl/netclient/functions.getAllNetworks (3 handlers)
netclient | [GIN-debug] GET /netclient --> github.com/gravitl/netclient/functions.getNetclient (3 handlers)
netclient | [GIN-debug] POST /connect/:net --> github.com/gravitl/netclient/functions.connect (3 handlers)
netclient | [GIN-debug] POST /leave/:net --> github.com/gravitl/netclient/functions.leave (3 handlers)
netclient | [GIN-debug] GET /servers --> github.com/gravitl/netclient/functions.servers (3 handlers)
netclient | [GIN-debug] POST /uninstall --> github.com/gravitl/netclient/functions.uninstall (3 handlers)
netclient | [GIN-debug] GET /pull/:net --> github.com/gravitl/netclient/functions.pull (3 handlers)
netclient | [GIN-debug] POST /nodepeers --> github.com/gravitl/netclient/functions.nodePeers (3 handlers)
netclient | [GIN-debug] POST /join --> github.com/gravitl/netclient/functions.join (3 handlers)
netclient | [GIN-debug] POST /sso --> github.com/gravitl/netclient/functions.sso (3 handlers)
Contributing guidelines
- [X] Yes, I did.