Commit Graph

474 Commits

Author SHA1 Message Date
Jeroen Leenarts 11b43206ff Add on demand rule. 2018-08-16 22:04:35 +02:00
Jeroen Leenarts 6b57ca0d98 Do not perform optional try, this ate errors in the addressess and DNS input. 2018-08-16 22:03:40 +02:00
Jeroen Leenarts 5fd6d91b3a Disable warning for function body length. 2018-08-16 21:46:54 +02:00
Jeroen Leenarts 35d88eff60 Calculate and apply CIDR. 2018-08-16 21:26:24 +02:00
Eric Kuck 475b6abb5b Added validation before saving any tunnels
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-08-15 17:34:16 -05:00
Jeroen Leenarts 4a31ab611e Apply endpoint config to routes. 2018-08-15 22:57:40 +02:00
Jeroen Leenarts 29879c7f0e Improve validator for IPv6. 2018-08-15 22:52:37 +02:00
Jeroen Leenarts bd27798ab9 Assign correct copyright. 2018-08-15 20:38:56 +02:00
Jeroen Leenarts fc1d20e70f Add Validator for Endpoints. 2018-08-15 20:35:21 +02:00
Jeroen Leenarts d6fcc10bd9 Remove old import. 2018-08-15 19:41:19 +02:00
Jeroen Leenarts 60a8274727 Remove unused pods. 2018-08-15 08:35:54 +02:00
Jeroen Leenarts f590c7ad3e Make sure the reference is not nil to packet flow. Thanks go out to "The Eskimo". 2018-08-14 21:40:20 +02:00
Jeroen Leenarts 013a75eda6 Use config key for DNS config setting. 2018-08-13 13:49:14 +02:00
Jeroen Leenarts 8e521b2b8f Do all packet reading from dispatch queue. 2018-08-13 13:48:08 +02:00
Jeroen Leenarts ec4bc66094 Do not set MTU if none available or zero. 2018-08-13 13:46:56 +02:00
Jason A. Donenfeld 7e2e65f160 bridge: don't put on another thread 2018-08-12 23:05:21 -07:00
Jeroen Leenarts 412b21a7ce Log on VPNStatusDidChange. 2018-08-12 21:50:54 +02:00
Jeroen Leenarts 6d977e13b2 Config tweaking. 2018-08-12 21:49:38 +02:00
Jeroen Leenarts e3de2ca0c3 Universal logging. 2018-08-12 21:40:44 +02:00
Jeroen Leenarts 336d6fd813 Do not read from packetFlow when tunnel is not yet fully initialized and configured. 2018-08-12 21:39:39 +02:00
Jeroen Leenarts 9ce5fccbd3 Add back addresses. 2018-08-12 21:37:56 +02:00
Jeroen Leenarts ca5d40c0d8 Fix config generation. 2018-08-09 22:45:28 +02:00
Jeroen Leenarts 126ea25ef1 Switch from using a single VPN manager to a VPN manager per configuration. 2018-08-08 07:04:42 +02:00
Jeroen Leenarts 1a4929964c Add tunnel provider identifier. 2018-08-08 06:59:56 +02:00
Jeroen Leenarts d449817a45 Generate split allowed IPs in protocol configuration. 2018-08-07 21:33:19 +02:00
Jeroen Leenarts cf0ccbf0d1 Remove Address and related code. 2018-08-06 23:28:52 +02:00
Jeroen Leenarts d11a5f6084 Update dependencies and remove unused dependencies. 2018-08-06 21:33:41 +02:00
Jeroen Leenarts bde972d96f Remove incorrect core data model fields. 2018-08-06 09:04:54 +02:00
Jeroen Leenarts a6b2f2edca Add provider configuration generation. 2018-08-06 09:04:29 +02:00
Jeroen Leenarts 042f556904 Update submodule. 2018-08-05 23:00:05 +02:00
Jeroen Leenarts 35cca893f5 Call read packets on background queue to allow waiting for signal. 2018-08-05 22:59:34 +02:00
Jeroen Leenarts 09b1cd129c A handle of zero is also correct. 2018-08-05 22:59:01 +02:00
Jeroen Leenarts e6d7dfb92c Set a tunnel (routing) configuration. Still very rough. 2018-08-05 22:58:48 +02:00
Jeroen Leenarts ea44b6de20 Fix binding. 2018-08-05 19:05:41 +02:00
Jeroen Leenarts ad2bc1e1ce Clean up do_read. 2018-08-05 16:02:45 +02:00
Jeroen Leenarts 2941f0eb71 Add default allowed IPs. 2018-08-05 15:58:01 +02:00
Jeroen Leenarts 4ed9c146ab Update steps in READMe. 2018-08-05 14:50:01 +02:00
Jeroen Leenarts 5e6f8d30bd Dump and expose WireGuard Go version info. 2018-08-05 08:07:04 +02:00
Jeroen Leenarts 675a17f51a Assign correct copyright. 2018-08-05 07:48:36 +02:00
Jeroen Leenarts 1dc70297f6 A server address is required for proper saving of protocol configuration. 2018-08-04 22:49:37 +02:00
Jeroen Leenarts 43d5534d22 Remove some silly TODOs. 2018-08-04 22:49:03 +02:00
Jeroen Leenarts 9d04aa71c2 Fix entitlement. 2018-08-04 22:48:51 +02:00
Jeroen Leenarts 9829d55f01 Make sure logs are visible. 2018-08-04 22:47:50 +02:00
Jeroen Leenarts a4db2d4f3e Add NETunnelProviderManager management to AppCoordinator. 2018-08-04 21:28:19 +02:00
Jeroen Leenarts bb81c14656 Finish trampoline code. 2018-08-03 22:24:41 +02:00
Jeroen Leenarts c51c49f354 Add acknowledgement to derivation from Apple sample code. 2018-07-15 11:56:24 +02:00
Jeroen Leenarts 0f1aa701df Change copyright notice. 2018-07-15 11:55:41 +02:00
Jeroen Leenarts 6344f3d25f Start wire-up of logging and tunnel system. 2018-07-07 22:54:44 +02:00
Jason A. Donenfeld fa8338ef7a Fix bizarre name 2018-06-23 02:15:43 +02:00
Eli Young 3da6c5a54c Finish casing fix from Wireguard to WireGuard
This also removes from the project various duplicate file entries that
differed only in casing. Note that, if working with a case-insensitive
filesystem (as are generally used on macOS systems), it is recommended
to destroy the affected files in the working tree and check them out
again. Failure to do this will result in XCode recreating duplicate file
entries in the project.
2018-06-22 13:50:16 -07:00