Development discussion of WireGuard
 help / color / mirror / Atom feed
* Fwd: Wireguard Windows version two bugs
       [not found] ` <>
@ 2023-01-02 11:11   ` Szymon Nowak
  0 siblings, 0 replies; only message in thread
From: Szymon Nowak @ 2023-01-02 11:11 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

I found two Wireguard problems under Windows and am looking for help

First problem
When you generate a key, its first character is „\”  or  „+”
then the peer configuration does not work properly and you cannot
connect to such configured client

C:\Program Files\WireGuard>wg genpsk

PublicKey = vruCee8G/DSwxotMHfhYQu8hcDEyi6uX4XEjT4FDxDc=
PresharedKey = +RFmc+cEztZ/XcNquWvUJdNqlVfYWB3fM7bVCDaUOV4=

All the peers below stop working

Second problem

The Wireguard network IP address registers itself in DNS all the time
and ignores the setting that it should not register the connection in
DNS. This is a big problem on a Windows domain controller, because
then clients from the LAN side can't connect because the server is
constantly reporting from Wireguard's IP.

I set RegisterThisConnectionsAddress to false
powershell.exe -command "Get-NetAdapter peer_server  | Set-DnsClient
-RegisterThisConnectionsAddress $false"

I set the metric high so that interfacet is not the main connection
powershell.exe -command "Set-NetIPInterface -InterfaceAlias
peer_server -InterfaceMetric 5000"

peer.conf (on Domian controler )
Address =
ListenPort = 51820
PrivateKey = WKUBw36Y8f04Ke6dgaXVUJPWYXcF5E2IIDUvQ+omX2Q=
PostUp = powershell.exe -command "Get-NetAdapter peer_server  |
Set-DnsClient -RegisterThisConnectionsAddress $false ;
Set-NetIPInterface -InterfaceAlias peer_server -InterfaceMetric 5000"

Despite these settings, Wireguard still registers its address with the
DNS server

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 45958 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 7988 bytes --]

[-- Attachment #4: image.png --]
[-- Type: image/png, Size: 12175 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-02 23:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
     [not found] ` <>
2023-01-02 11:11   ` Fwd: Wireguard Windows version two bugs Szymon Nowak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).