Commit Graph

333 Commits

Author SHA1 Message Date
Jason Rhinelander
63a876cc78
Allow -DWITH_SETCAP=OFF to disable setcap during make install (#1363)
The debs don't want it (and so this will save needing to patch it out),
nor do you need it if running via a systemd service file that sets the
capabilities.
2020-09-22 17:45:42 -04:00
Rick V
7136f77c2e
allow running lokinet as root on windows (#1347)
* - allow running lokinet as root on windows
  ($PROGRAMDATA/.lokinet/lokinet.ini)
- oops forgot to eat my own command line args

* cursed windows

* now that we eat our own startup options the entry in cxxopts is fully
ded

* aha our command line options get smashed up

* revert plus DRY fix
2020-09-17 15:20:50 -04:00
Jeff
dfd8df5e7f
add uninstall target (#1340)
* add uninstall target

* * redo cmake uninstall
* remove lokinet-vpn python script
* don't install lokinet-vpn twice
2020-09-09 12:06:57 -04:00
jeff
bbc749294e fix windows build typo 2020-08-27 16:48:27 +00:00
Jeff Becker
21bc3bd9a0
format 2020-08-24 20:35:31 -04:00
jeff
f6f56029d3
working netlink route poker 2020-08-24 20:23:26 -04:00
jeff
099831719a
update macos command for default route poker. 2020-08-24 20:21:18 -04:00
jeff
528340e056
dont include sys/wait.h on windows 2020-08-24 20:21:18 -04:00
jeff
d0374ce083
windows does not have fork/wait 2020-08-24 20:21:18 -04:00
jeff
6d91ac8e4e
rename r flag to router 2020-08-24 20:21:17 -04:00
jeff
f5e4d8bd1b
execv needs program name as first argument 2020-08-24 20:19:52 -04:00
jeff
0ee1c4a60a
use full path for ip on linux and report exit code 2020-08-24 20:19:51 -04:00
jeff
bc8e867dfb
use exec for lokinet-vpn 2020-08-24 20:19:51 -04:00
Rick V
f283c565e7
make x.x.x.y+1 the default router on windows 2020-08-24 20:19:50 -04:00
Jeff Becker
400f5d3902
windows uses multiple commands for default route. 2020-08-24 20:19:50 -04:00
Jeff Becker
d1abee84d1
windows route hack because lol windows 2020-08-24 20:19:50 -04:00
Jeff Becker
b2e5a178a4
verbose logging of executed commands 2020-08-24 20:19:50 -04:00
Jeff Becker
d9d63ba14b
add metric to windows 2020-08-24 20:19:50 -04:00
Jeff Becker
876b8db1a1
windows fixes 2020-08-24 20:19:50 -04:00
Jeff Becker
dde6bbeeb8
fix for windows as it is cursed 2020-08-24 20:19:50 -04:00
Jeff Becker
88de4c6f91
windows fixes 2020-08-24 20:19:50 -04:00
Jeff Becker
65b9b55335
fixes for windows 2020-08-24 20:19:50 -04:00
Jeff Becker
7e562a5b37
add netmask for macos 2020-08-24 20:19:49 -04:00
Jeff Becker
49eb42d63f
formatting and typo fix 2020-08-24 20:19:49 -04:00
Jeff Becker
9e24a5bfca
add check for no default route on down
fix macos bits for down
install lokinet-vpn with cmake
2020-08-24 20:19:49 -04:00
Jeff Becker
c49e11031a
fix variable name 2020-08-24 20:19:49 -04:00
Jeff Becker
778792f8fc
fix compile error on macos and exclude excluded interface 2020-08-24 20:19:49 -04:00
Jeff Becker
c2e484d14b
fix apple build 2020-08-24 20:19:49 -04:00
Jeff Becker
847fdb4f6b
add initial macos bits for lokinet-vpn (apple made macos so that man may suffer) 2020-08-24 20:19:49 -04:00
Jeff Becker
34ffd8e869
dont put the "gateway" into the return value use the interface address instead because that is what we are looking for 2020-08-24 20:19:49 -04:00
Jeff Becker
45b6fcd7cb
forgot hunk 2020-08-24 20:19:49 -04:00
Jeff Becker
04392a5115
tweak windows bits so that they compile 2020-08-24 20:19:49 -04:00
Jeff Becker
36a2bc5d66
add forgotten array header 2020-08-24 20:19:48 -04:00
Jeff Becker
22e4aef4f9
initial windows platform specific bits for lokinet-vpn 2020-08-24 20:19:48 -04:00
Jeff Becker
37e16291cb
working on linux with root 2020-08-24 20:19:48 -04:00
Jeff Becker
a8239af73a
initial lokinet-vpn tool rewrite 2020-08-24 20:19:48 -04:00
Rick V
98241c6c1a this is what c-f v10 thinks it should look like 2020-08-13 12:06:57 -05:00
Rick V
59b8b1ba6d add service description 2020-08-12 20:00:54 -05:00
Rick V
7de4c509d7 haha lokinet is cursed now 2020-08-12 19:49:26 -05:00
Rick V
7bd3731e98 first draft of daemon control code 2020-08-12 15:27:39 -05:00
Rick V
d56706b626 more daemon fluff 2020-08-12 14:55:03 -05:00
Rick V
8c62a726c0 stupid trampoline to return control to lokinet
after SCM starts
2020-08-12 14:11:47 -05:00
Rick V
ca9984cc69 win32 daemon install/remove goo 2020-08-12 13:03:52 -05:00
Stephen Shelton
0f074cff8c
Remove ambguity WRT loading and passing of Config 2020-07-06 13:38:02 -06:00
Stephen Shelton
ec20d94c6b
Fix Context::Configure() 2020-07-02 10:26:53 -06:00
Stephen Shelton
ed47ba998f
Minor fixes around Context 2020-07-02 10:26:52 -06:00
Jeff Becker
0f21eeccb0
* rework exit codepath to allow multiple exits
* rework net code for ip ranges to be cleaner
* clean up endpoint auth code
* refactor config to validate network configs before setting up endpoints
* remove buildone from path/pathbuilder.cpp so we don't spam connection attempts
2020-07-02 11:13:30 -04:00
Jeff Becker
3cdca30a74
more auth shit 2020-07-02 11:13:30 -04:00
Stephen Shelton
0aa43c6b07
Pass RuntimeOptions instead of 'bool isRelay' 2020-07-01 08:38:56 -06:00
Stephen Shelton
984015587d
"Rethrow" to promise using std::current_exception() 2020-07-01 08:38:33 -06:00