aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tunnel: device->interfaceJason A. Donenfeld2019-09-131-1/+1
|
* tunnel: do not query real interface nameJason A. Donenfeld2019-08-261-7/+0
| | | | | | | | | | | We want to enforce the relation between the socket name and the service name, especially since the wintun adapter name might get a 1 or 2 appended depending on weird Nci duplication detection. So we just stick with the configuration-given name throughout. Also, the user can change the adapter name at runtime, which is all the more reason why maybe we shouldn't care about it so much. Reported-by: Nenad Kozul <me@nenadkozul.com>
* tunnel: move Run into own module to reduce file sizeJason A. Donenfeld2019-08-241-2/+14
|
* elevate: move service/token into proper moduleJason A. Donenfeld2019-08-051-1/+2
|
* tunnel: extract owner of config file for pipe daclJason A. Donenfeld2019-07-191-0/+5
| | | | | | If the config file is unencrypted and its owner is not Local System, then we allow the runtime named pipe to be accessed by that owner, since generally the private key is already stored in the config file.
* tunnel: wait for IP service to attach to wintunJason A. Donenfeld2019-06-181-23/+14
| | | | | | This helps fix startup races without needing to poll, as well as reconfiguring interfaces after wintun destroys and re-adds. It also deals gracefully with IPv6 being disabled.
* tunnel: generate GUIDs deterministicallyJason A. Donenfeld2019-06-101-1/+1
| | | | | | This allows NLA profiles to securely bind public keys to firewall profiles, a considerable improvement on the usual insecure Windows situation.
* tunnel: SCM lock status is upstream nowJason A. Donenfeld2019-06-091-32/+11
|
* tunnel: release SCM locks by faking an early start before wintun initJason A. Donenfeld2019-06-071-0/+35
| | | | | Otherwise creating the wintun service deadlocks the entire SCM on Windows 8.1.
* global: cleanup TODO comment spacingJason A. Donenfeld2019-06-071-1/+1
|
* tunnel: perform full stop on shutdownSimon Rozman2019-06-071-2/+2
| | | | | | | | | | | The services which do not advertise they accept shutdown signal from SCM are killed on shutdown. This commit establishes a full tunnel cleanup (i.e. delete the adapter) on shutdown. Otherwise, the Wintun adapter is deleted on next boot as a part of the regular sanitation procedure. Signed-off-by: Simon Rozman <simon@rozman.si>
* tunnel: retain SeLoadDriverPrivilegeJason A. Donenfeld2019-06-071-2/+2
| | | | This is a big loss. We'll need to revisit this.
* tunnel: make tcp/ip waiting explicitJason A. Donenfeld2019-05-311-0/+3
|
* winipcfg: importJason A. Donenfeld2019-05-221-1/+1
| | | | | | | | We'll maintain this as part of the same repo here. Later maybe we'll push it into x/sys/windows. Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Aleksandar Pesic <peske.nis@gmail.com>
* tunnel: remove routes before destroying interfaceJason A. Donenfeld2019-05-221-1/+5
|
* service: split into tunnel and managerJason A. Donenfeld2019-05-201-0/+225