Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the wgsd on Windows #32

Open
levin-go opened this issue Mar 13, 2021 · 2 comments
Open

How to use the wgsd on Windows #32

levin-go opened this issue Mar 13, 2021 · 2 comments

Comments

@levin-go
Copy link

hi,

I've been trying to use the wgsd recently, and I understand how to use it on linux.But I have trouble using it under windows.

DEVICE is the name of the WireGuard interface, e.g. wg0

can you tell me how to set 'DEVICE' on windows?
Thanks.

@jwhited
Copy link
Owner

jwhited commented Mar 19, 2021

hi @styfstr, I haven't tried wgsd/wgsd-client on windows, but we use wgctrl-go under the hood which should support it:

wgctrl can control multiple types of WireGuard devices, including:

Linux kernel module devices, via generic netlink
userspace devices (e.g. wireguard-go), via the userspace configuration protocol
both UNIX-like and Windows operating systems are supported
Experimental: OpenBSD kernel module devices (read-only), via ioctl interface
See https://git.zx2c4.com/wireguard-openbsd/about/ for details.

WireGuard on Windows uses https://www.wintun.net I think, which should surface the tun interface as another network adapter? Do you not see another adapter?

@119977
Copy link

119977 commented Apr 7, 2021

Sorry, my English is not good.
Windows installs the official version of wireguard, which exists in the directory wg.exe Command, wgshow, output “interface:xxxx ”xxxx Name of network card

After using wgsd client in window, I can't connect to two Nats. Here are the output information and configuration information

Dig in server

$dig @10.0.0.1 -p 53 _ wireguard._ udp.example.com . PTR +noall +answer +additional

output
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_ 9.4 <<>> @10.0.0.1 -p 53 _ wireguard._ udp.example.com . PTR +noall +answer +additional ; (1 server found) ;; global options: +cmd

registry "wg show" output

`[root@cvm14394 ~]# wg
interface: wg1
public key: dp5UhIpRw6JBDbFoVeI7gCLpaUTT332WRMsfPVCEYVI=
private key: (hidden)
listening port: 51820

#peer1
peer: 6TIxBFP8A4oOJovaZJwYJmgpV1UiNm1WsYy2rN7lDx4=
endpoint: xxx.xxx.xx.xx:22519
allowed ips: 10.0.0.3/32
latest handshake: 52 seconds ago
transfer: 3.89 KiB received, 1.08 KiB sent

#peer2
peer: 0uQXq733ROaitW0/KDdrGUlK046OawBSp1u4VQKyNWg=
endpoint: xxx.xxx.xxx.xxx:22523
allowed ips: 10.0.0.2/32
latest handshake: 1 minute, 6 seconds ago
transfer: 3.89 KiB received, 1.08 KiB sent
`
DNS settings

.:53 { wgsd _ wireguard._ udp.example.com . wg1 { self 10.0.0.1/32 } }
window output
`C:\Program Files\WireGuard>wgsd-client -device test -dns 10.0.0.1:53 -zone example.com.

2021 / 04 / 07 14:31:44 [dp5uhiprw6jbdbfovei7gclpautt332wrmsfvvceyvi]) no SRV records found

2021 / 04 / 07 14:31:44 [0uqxq733roaitw0 / kddrgulk046owbsp1u4vqkynwg]) no SRV records found`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants