aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/ifaceconfig.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-05-20service: split into tunnel and managerJason A. Donenfeld1-220/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-20service: move route monitor and account for changing indexJason A. Donenfeld1-133/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-20service: simplify tunnel loggingJason A. Donenfeld1-2/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-20service: give indication of socket bindingJason A. Donenfeld1-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-16service: silently ignore routes that won't have a gatewayJason A. Donenfeld1-18/+13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-16global: change acronyms to uppercaseSimon Rozman1-43/+43
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-15service: ip adapter might not be up yetJason A. Donenfeld1-5/+19
I don't like polling, but windows is racey. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14service: replace GetIfEntry2Ex with GetIfEntry2Simon Rozman1-1/+1
GetIfEntry2Ex is Windows 10+ only Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-14service: winipcfg no longer returns a wrapped errorJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14service: skip routes for interfaces that aren't upJason A. Donenfeld1-0/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-14service: reuse golang.org/x/sys/windows address family constantsSimon Rozman1-12/+13
Signed-off-by: Simon Rozman <simon@rozman.si>
2019-05-13firewall: only allow specified dns serversJason A. Donenfeld1-3/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-10service: use LUID directlyJason A. Donenfeld1-15/+5
InterfaceGuidToLuid fails if called soon after device creation. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-10service: clean up addresses from stale interfacesJason A. Donenfeld1-0/+51
Other VPN implementations leave trash laying around... Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-05ui: syntax: implement trafic blocking semanticsJason A. Donenfeld1-2/+8
This is our "auto kill switch". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-03service: wire up firewallJason A. Donenfeld1-0/+25
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-03ifaceconfig: remove unused codeJason A. Donenfeld1-13/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-13tunnel: tell wggo about mtu changesJason A. Donenfeld1-6/+9
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-08ifaceconfig: don't try to set v6 MTUs under 1280Jason A. Donenfeld1-0/+6
We also constrain v4, but it'd be surprising for that to actually be an issue without something else also being an issue. Reported-by: Thomas Gschwantner <tharre3@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-05ifaceconfig: more compact less functionJason A. Donenfeld1-13/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-05ifaceconfig: set MTU and monitor for auto mtu changesJason A. Donenfeld1-1/+52
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-05ifaceconfig: trim filtered listJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-04ifaceconfig: cleanupJason A. Donenfeld1-5/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-04ifaceconfig: remove split routes paramJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-04ifaceconfig: deduplicate routesJason A. Donenfeld1-18/+31
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-04ifaceconfig: call setsockopt less oftenJason A. Donenfeld1-4/+14
Cache the last LUID set, and only change when the default route changes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-03tunnel: do not rely on submoduleJason A. Donenfeld1-33/+7
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-02ifaceconfig: monitor for changes to default interfaceJason A. Donenfeld1-40/+45
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-01ifaceconfig: allow for null defaultsJason A. Donenfeld1-23/+65
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-01ifaceconfig: separate out from tunnel service fileJason A. Donenfeld1-0/+184
Also better support v6 routes. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>