Cannot set endpoint to localhost on windows
chrome.hiri.angry at gmail.com
Sat Aug 29 17:58:10 CEST 2020
I'm not sure if this is already reported or not but I found a small
problem with the windows client of wireguard that does not allow users
to use "plugins" on top of wireguard.
So here is my case. I used gost to create a really simple port
forwarder from my localhost to my server with this command: gost
-L=udp://127.0.0.1:12345/22.214.171.124:12345 (that forwards packets on port
12345 to 126.96.36.199:12345 and of course my server is not 188.8.131.52 :D)
Also here is my wireguard config:
PrivateKey = xxxx
Address = 10.9.0.2/24
DNS = 184.108.40.206
PublicKey = xxxx
AllowedIPs = 0.0.0.0/8,220.127.116.11/16,18.104.22.168/24,22.214.171.124/32,126.96.36.199/31,188.8.131.52/30,184.108.40.206/29,220.127.116.11/28,18.104.22.168/27,22.214.171.124/26,126.96.36.199/25,188.8.131.52/23,184.108.40.206/22,220.127.116.11/21,18.104.22.168/20,22.214.171.124/19,126.96.36.199/18,188.8.131.52/17,184.108.40.206/15,220.127.116.11/14,18.104.22.168/13,22.214.171.124/12,126.96.36.199/11,188.8.131.52/10,184.108.40.206/9,220.127.116.11/7,18.104.22.168/6,22.214.171.124/5,126.96.36.199/4,188.8.131.52/3,184.108.40.206/2,220.127.116.11/1
Endpoint = 127.0.0.1:12345
PersistentKeepalive = 25
The allowed IPs are all ip addresses except 18.104.22.168.
When I run the client, the log fills with: [TUN] [xxx-wg0] peer(xxx) -
Failed to send data packet write udp4 0.0.0.0:58932->127.0.0.1:12345:
wsasendto: The requested address is not valid in its context.
And I cannot connect to anything. Sometimes in gost, it says that a
connection is established but I still cannot connect to anything
Also it's good to know that the exact config works fine with TunSafe,
the official Ubuntu client and openvpn. (I can connect through gost)
Thanks for the project!
More information about the WireGuard