DefGuard/client

Unable to connect to Wireguard instance after importing config

Closed this issue · 3 comments

I imported my Wireguard config file, which didn't go without a hiccup:

  • The Address field contained both an IPv4 and IPv6 address
  • My config contains Address with a subnet mask (/24). Removing the subnetmask resolved the field validation error

Finally ends up with an imported tunnel:

image

Clicking Connect doesn't work though:

2024-03-13T08:21:14.935866+01:00 frank-laptop defguard-client.desktop[6642]: [2024-03-13][07:21:14][ERROR][k0@tauri://localhost/assets/index-d5216b38.js:68:7119] Invoking connect FAILED
2024-03-13T08:21:14.936439+01:00 frank-laptop defguard-client.desktop[6642]: "IP address parse error: invalid socket address syntax"
2024-03-13T08:21:14.936498+01:00 frank-laptop defguard-client.desktop[6642]: [2024-03-13][07:21:14][ERROR][k0@tauri://localhost/assets/index-d5216b38.js:68:7119] Error handling interface: IP address parse error: invalid socket address syntax

Not sure which IP address it is not liking (see #206)

teon commented

@syphernl by any chance is the server Address a doman name? If it is that's the problem, you need to follow this issue #213 if you have a domain name. For now, just put the IP.

@syphernl by any chance is the server Address a doman name? If it is that's the problem, you need to follow this issue #213 if you have a domain name. For now, just put the IP.

Ah yes it is. If I put in the IP it does work fine indeed. Thanks!

teon commented

@syphernl Perfect! Would be great if you joined our Matrix and told us anything about your deployment (no specifics), how did you found defguard, etc. We love to hear and talk about how we could make the product better and more fitted into any use cases...