summaryrefslogtreecommitdiffhomepage
path: root/tunnel
AgeCommit message (Collapse)Author
2023-04-01tunnel: support dynamic updates of allowed-ips in Go backendMikael Magnusson
2023-04-01tunnel: refresh modMikael Magnusson
2023-04-01WIP: Add TrafficStatsMikael Magnusson
2023-04-01tunnel: add bgp-javaMikael Magnusson
Add bgp-java. Update peer list based on TunnelEncapsAttribute in BGP. Add backend to bgp constructor
2023-04-01WIP add ConfigDetail and PeerDetailMikael Magnusson
2023-04-01WIP: add dhcp addresses to tunnel detailsMikael Magnusson
2023-04-01tunnel: download pac in javaMikael Magnusson
2023-04-01tunnel: request DHCPv6 leasesMikael Magnusson
2023-04-01ui,tunnel: auto-detect IPv6/IPv4 preferenceMikael Magnusson
Detect IP address change. Request non-VPN network. Update endpoint when needed. Unregister network on wgTurnOff and use IPv4 if network is not known.
2023-04-01ui,tunnel: add lastest handshake to peer detailsMikael Magnusson
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2023-04-01tunnel: add experimental SOCKS clientMikael Magnusson
2023-04-01ui,tunnel: implement http proxy for Android 10+Mikael Magnusson
Allow getting package names of tv apps.
2023-04-01tunnel: use UdsChannelBuilder impl from grpc-androidMikael Magnusson
Replace local unix domain socket implementation with UdsChannelBuilder from grpc-android version 1.55.0-SNAPSHOT in maven local repository.
2023-04-01tunnel: add gRPC over unix domain socket to the go backendMikael Magnusson
With gRPC it will be easier to extend the go backend API. In this commit the Version function is reimplemented in gRPC. Gitignore generated protobuf files.
2023-04-01ui,tunnel: add HTTP proxy setting to Go backendMikael Magnusson
Only make the HTTP proxy settings visible on supported Android versions, i.e. Android 10 (AKA Android Q) and later. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
2023-03-28tools: use NDK's make binary rather than system'sJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-28gradle: opt into new publishing APIsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-24build: raise target SDK to 33Harsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-03-22tools: compile with latest NDKJason A. Donenfeld
The -mthumb -> -marm hack is unfortunate. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-22tools: use __ANDROID_MIN_SDK_VERSION__ instead of __ANDROID_API__Jason A. Donenfeld
The latter is deprecated. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21global: bump copyright dateJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21build: update to gradle 7.4.2 and restructure lint blockJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-03-21tools: bump depsJason A. Donenfeld
Notably, this isn't bumping to the latest wireguard-go master, which is still in flux. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2023-01-20gradle: adjust for and raise compileSdk to 33SlipkHunter
Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-01-20gradle: migrate to namespace attributeHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2023-01-20gradle: force the use of an older NDK versionSlipkHunter
NDK 25.x removed the bundled ld.gold/ld.bfd linkers, replacing them with the ld.ldd linker from LLVM. This causes the toolchains to pick up the host OS' `ld.gold` instead, which does not know how to link ARM(64) code and fails the build. Fixes: f269fb175dd7 ("gradle: update AndroidX and Kotlin") Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-12-01ui: un-export VpnServiceHwanseung Lee
There is no reason to expose this service to external apps.[1] [1] https://developer.android.com/guide/topics/manifest/activity-element#exported Signed-off-by: Hwanseung Lee <hwanseung@chromium.org> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-05-16tools: bump depsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-04-26ui: move target SDK to 31Shahzain Ali
Signed-off-by: Shahzain Ali <shahzainali93@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2022-03-20tools: bump wireguard-go and go 1.18Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-02-09tunnel: fix BadConfigExceptionTestMichal Murin
Fix the test by changing the DNS to a string with an invalid char in the `invalid-value.conf` test configuration file. Signed-off-by: Michal Murin <michal.murin@jamf.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-01-21ToolsInstaller: set id=wireguard magisk module paramJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-29tools: bump libwg-goJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-29global: bump copyright yearJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-29tunnel: remove kernel module downloaderJason A. Donenfeld
Nathan Chance dropped the ball repeatedly and never maintained this in a consistent way that anybody could use. With Android 12 out now, just drop it all together. A bummer, but I don't see much of a choice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-28tunnel: make JSR305 annotations a compileOnly dependencyHarsh Shandilya
These have no business being part of the runtime classpath of this library Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-09-26tunnel: bump to work on x86_64 architectureJason A. Donenfeld
Bionic bans poll, so switch to ppoll. Folks were experiencing crashes on ChromeOS. We're waiting for https://go-review.googlesource.com/c/sys/+/352310 to be merged, but for now we rely on https://git.zx2c4.com/wireguard-go/commit/?id=fcc601dbf0f6b626ec1d47a880cbe64f9c8fe385 Reported-by: Rodrigo Alexandre <rdrslv00@gmail.com> Reported-by: Mace Moneta <moneta.mace@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-25ui,tunnel: support DNS search domainsJason A. Donenfeld
wg-quick has supported this for a while, but not the config layer, and not the Go backend, so wire this all up. Requested-by: Alexis Geoffrey <alexis.geoffrey97@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-24tools: bump depsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-13tunnel: bump depsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-09-09tools: bump for android 12Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-07-29gradle: update property set with AGP 7 experimental flagsHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-07-29build: fix CMake warningHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-07-29build: switch to modern plugin application layoutHarsh Shandilya
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2021-05-26tunnel: retry DNS resolution for 10 secondsJason A. Donenfeld
This has several problems: 1) it blocks the main thread; 2) it doesn't distinguish between a permanent error and a transient one; 3) the 10 seconds is hard coded; 4) there's no way for the user to cancel it. We'll have to improve this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-07tunnel: bump depsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-07tunnel: download hash list in chunks if necessaryJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-06tunnel: avoid race between shutdown and statsJason A. Donenfeld
wgTurnOff can block for a while, in which case, calling getStatistics will use a stale handle and stale tunnel. Not only that, but wgGetConfig might return null, in which case string.split throws. java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null at com.wireguard.android.backend.GoBackend.getStatistics Reported-by: tomt@adslweb.co.uk Link: https://lists.zx2c4.com/pipermail/wireguard/2021-May/006709.html Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-05-05tools: bump depsJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-02-22tunnel: update to go 1.16 and newer apiJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>