aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-11-11global: backout AddrFromSlice signature changeJason A. Donenfeld2-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-11-08tunnel: check for WeakHostSend/Forwarding in pitfallsJason A. Donenfeld3-0/+180
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-11-06tunnel: add routes even when no corresponding addressJason A. Donenfeld1-16/+3
Apparently this works now, but it didn't used to. Reported-by: Christoph Loesch <wireguard-mail@chil.at> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-11-06winipcfg: handle zones and make things use itJason A. Donenfeld1-2/+14
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-11-06global: switch to netipJason A. Donenfeld8-202/+157
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-26services: use more reliable method of detecting boot-upJason A. Donenfeld2-22/+23
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-26tunnel: cleanup IPs when masks don't matchJason A. Donenfeld1-9/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-26tunnel: convert ips to string for hash tableJason A. Donenfeld1-14/+12
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-26tunnel: defer startup until tcp configuration is setJason A. Donenfeld2-7/+31
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-21tunnel: add retry loop to certain interface config failuresJason A. Donenfeld2-11/+32
I wish there was another way here, but we have too little control over Windows' boot sequence. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-20manager: warn about dnscache and old virtio driverJason A. Donenfeld1-25/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-16global: remove wireguard-go/Wintun implementationJason A. Donenfeld7-621/+55
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-16tunnel: remove old reboot required logicJason A. Donenfeld1-4/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-12global: remove old-style build tagsJason A. Donenfeld6-6/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-11global: use unsafe.Slice instead of unsafeSliceJason A. Donenfeld1-28/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-05driver: use new APIJason A. Donenfeld1-13/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-23winipcfg: fix typo in DNS LLMNR flagJason A. Donenfeld1-1/+1
Reported-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-19tunnel: help people fix their DNS Cache serviceJason A. Donenfeld1-0/+25
Too many people follow silly Internet guides and disable this, making it impossible for us to then set activestore-style DNS servers for the interface. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-16tunnel: pretty print route failures betterJason A. Donenfeld2-2/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-15tunnel: return if unable to configureJason A. Donenfeld1-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-14tunnel: reinitialize configuration after PnP flaps driver on <10Jason A. Donenfeld2-4/+20
On older Windows, PnP will unload the driver and reload it. This makes multiple tunnels impossible, as we knew. But this also happens when various adapter settings change, like ICS, which is maybe a bigger issue. Solve this by reloading the configuration after these flaps. Reported-by: Harland Coles <harland.coles@energy-x.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-12global: prefer WireGuardNT over wireguard-go/WintunJason A. Donenfeld1-7/+1
Also remove Wintun driver on startup. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-09tunnel: set address after routes so that loopback worksJason A. Donenfeld1-11/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-09winipcfg: disable DAD so that IP becomes useful soonerJason A. Donenfeld1-0/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-09tunnel: disable dhcp probesJason A. Donenfeld1-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-09tunnel: disable dad and router discovery on v4 tooJason A. Donenfeld1-12/+5
Oddly enough, these mean something for IPv4. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-07locales: sync with crowdinJason A. Donenfeld1-4/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-13winipcfg: update documentationSimon Rozman1-1/+1
Signed-off-by: Simon Rozman <simon@rozman.si>
2021-08-10tunnel: execute *down commands for wgntJason A. Donenfeld1-3/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-10tunnel: provide better logging for when iphlpapi failsJason A. Donenfeld2-4/+11
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-09embeddable-dll-service: use wgnt alwaysJason A. Donenfeld1-1/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-08driver: break encapsulation and pass timestamp to ringloggerJason A. Donenfeld1-1/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-08tunnel: increase tun creation retry boot timer to 10 minutesJason A. Donenfeld1-2/+2
Some failures, such as EPT_S_NOT_REGISTERED, apparently can take 5 minutes, so extend this to 10 minutes to be sure. Link: https://lists.zx2c4.com/pipermail/wireguard/2021-August/006908.html Reported-by: Joshua Sjoding <joshua.sjoding@scjalliance.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-08winipcfg: SetInterfaceDnsSettings is now documented on MSDNJason A. Donenfeld4-33/+36
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-04winipcfg: do not set MTU in registry after setting it in iphlpapiJason A. Donenfeld2-21/+2
This reverts commit 3f07aa3f0fcd1153687bfb442c0c5b674216d595. Fixed for wgnt 0.3. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-03winipcfg: set MTU in registry after setting it in iphlpapiJason A. Donenfeld1-1/+18
Otherwise wireguard-nt is unable to be notified of it. This is a pretty nasty hack that we should revert ASAP. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-08-02driver: introduce new module for talking with kernel driverJason A. Donenfeld6-88/+305
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-07-29winipcfg: swap endianness of port for rawsockaddrinetJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-06-18tunnel: support turning off automatic routing tableJason A. Donenfeld1-4/+6
This supports the familiar "Table = off" syntax as on Linux, and then interprets other valid values as simply "on". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-06-18global: go fmt for 1.17 build tagsJason A. Donenfeld6-0/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-03-07winipcfg: add ConvertInterfaceIndexToLUIDKay Diam3-0/+21
This change can be used to easily get an access to any interface by name, e.g. iface, err := net.InterfaceByName(name) if err ! nil { return err } luid, err := winipcfg.LUIDFromIndex(uint32(iface.Index)) if err != nil { return err } Signed-off-by: Kay Diam <kay.diam@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-22tunnel: fix sorting cascade in address configJason A. Donenfeld1-4/+13
Reported-by: Tbolp <tbolp@qq.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-22tunnel: new bind object handlingJason A. Donenfeld3-17/+15
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-16tunnel: retry wintun creation a few times at early bootJason A. Donenfeld1-1/+12
This is to prevent races that we still don't understand with Windows Update when Windows Sandbox is enabled. Pretty gnarly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-16tunnel: simplify panic printingJason A. Donenfeld1-12/+0
Now that we're intercepting println, we don't need this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-02winipcfg: move to undocumented DNS functionJason A. Donenfeld8-194/+212
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-01global: bump copyright dateJason A. Donenfeld31-31/+31
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-01tunnel: update to simpler logging interfaceJason A. Donenfeld1-5/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-01-24mod: bumpJason A. Donenfeld1-4/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-11-27winipcfg: cleanup netsh error reportingJason A. Donenfeld1-7/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>