wgsd
wgsd copied to clipboard
How to use the wgsd on Windows
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.
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?
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`