Jason A. Donenfeld
|
9d9307ce03
|
Import 25519 functions, to be reorganized later
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-21 16:14:17 -07:00 |
Jeroen Leenarts
|
e93e562f38
|
Use a Switch on each tunnel cell.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-21 22:27:44 +02:00 |
Jeroen Leenarts
|
dc1a3865af
|
Line selection configures the tunnel.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-21 20:04:14 +02:00 |
Eric Kuck
|
39ae9db11c
|
Added ability to add tunnels with a QR code scan. Logic in place to parse conf files as well.
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
|
2018-08-21 11:00:41 -05:00 |
Jeroen Leenarts
|
c2b591cc44
|
Use first peer's endpoint as the tunnel remote address.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-17 22:07:01 +02:00 |
Jeroen Leenarts
|
5a7e67b53c
|
Extend validators to work for DNS entries as well.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 22:41:45 +02:00 |
Jeroen Leenarts
|
bf3510765a
|
Use `commaSeparatedToArray` utility everywhere.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 22:39:08 +02:00 |
Jeroen Leenarts
|
603953a8b8
|
If the selected tunnel is not "enabled", make it enabled.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 22:05:22 +02:00 |
Jeroen Leenarts
|
a95212fcc8
|
Add on demand rule.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 22:04:35 +02:00 |
Jeroen Leenarts
|
0adb454bd6
|
Do not perform optional try, this ate errors in the addressess and DNS input.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 22:03:40 +02:00 |
Jeroen Leenarts
|
d1223eb085
|
Disable warning for function body length.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 21:46:54 +02:00 |
Jeroen Leenarts
|
d341c8e8e8
|
Calculate and apply CIDR.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-16 21:26:24 +02:00 |
Eric Kuck
|
b306149222
|
Added validation before saving any tunnels
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
|
2018-08-15 17:34:16 -05:00 |
Jeroen Leenarts
|
449bd53b1e
|
Apply endpoint config to routes.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 22:57:40 +02:00 |
Jeroen Leenarts
|
91daed0c80
|
Improve validator for IPv6.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 22:52:37 +02:00 |
Jeroen Leenarts
|
15cb942368
|
Assign correct copyright.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 20:38:56 +02:00 |
Jeroen Leenarts
|
9037b90747
|
Add Validator for Endpoints.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 20:35:21 +02:00 |
Jeroen Leenarts
|
04454b8451
|
Remove old import.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 19:41:19 +02:00 |
Jeroen Leenarts
|
bedb1df05d
|
Remove unused pods.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-15 08:35:54 +02:00 |
Jeroen Leenarts
|
335907309c
|
Make sure the reference is not nil to packet flow. Thanks go out to "The Eskimo".
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-14 21:40:20 +02:00 |
Jeroen Leenarts
|
fc72697d82
|
Use config key for DNS config setting.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-13 13:49:14 +02:00 |
Jeroen Leenarts
|
aa92fd7dfc
|
Do all packet reading from dispatch queue.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-13 13:48:08 +02:00 |
Jeroen Leenarts
|
6d18b6cccb
|
Do not set MTU if none available or zero.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-13 13:46:56 +02:00 |
Jason A. Donenfeld
|
76a001dbe0
|
bridge: don't put on another thread
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 23:05:21 -07:00 |
Jeroen Leenarts
|
a81e8dcf3c
|
Log on VPNStatusDidChange.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 21:50:54 +02:00 |
Jeroen Leenarts
|
41f9a64d9f
|
Config tweaking.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 21:49:38 +02:00 |
Jeroen Leenarts
|
f6fc8cd9bd
|
Universal logging.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 21:40:44 +02:00 |
Jeroen Leenarts
|
a27328ed72
|
Do not read from packetFlow when tunnel is not yet fully initialized and configured.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 21:39:39 +02:00 |
Jeroen Leenarts
|
d38a81c301
|
Add back addresses.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-12 21:37:56 +02:00 |
Jeroen Leenarts
|
9e8feb05f3
|
Fix config generation.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-09 22:45:28 +02:00 |
Jeroen Leenarts
|
bee5363dfa
|
Switch from using a single VPN manager to a VPN manager per configuration.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-08 07:04:42 +02:00 |
Jeroen Leenarts
|
2b7aa04d40
|
Add tunnel provider identifier.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-08 06:59:56 +02:00 |
Jeroen Leenarts
|
762618ee5a
|
Generate split allowed IPs in protocol configuration.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-07 21:33:19 +02:00 |
Jeroen Leenarts
|
4eca5e814c
|
Remove Address and related code.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-06 23:28:52 +02:00 |
Jeroen Leenarts
|
6707802e60
|
Update dependencies and remove unused dependencies.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-06 21:33:41 +02:00 |
Jeroen Leenarts
|
7a4cbfa609
|
Remove incorrect core data model fields.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-06 09:04:54 +02:00 |
Jeroen Leenarts
|
5697d6e7e2
|
Add provider configuration generation.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-06 09:04:29 +02:00 |
Jeroen Leenarts
|
2a0b84eeb9
|
Update submodule.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 23:00:05 +02:00 |
Jeroen Leenarts
|
bacf61d153
|
Call read packets on background queue to allow waiting for signal.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 22:59:34 +02:00 |
Jeroen Leenarts
|
17d4460df0
|
A handle of zero is also correct.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 22:59:01 +02:00 |
Jeroen Leenarts
|
ed18f66a6f
|
Set a tunnel (routing) configuration. Still very rough.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 22:58:48 +02:00 |
Jeroen Leenarts
|
b2950694d3
|
Fix binding.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 19:05:41 +02:00 |
Jeroen Leenarts
|
b6d8219244
|
Clean up do_read.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 16:02:45 +02:00 |
Jeroen Leenarts
|
a1a5e73a5d
|
Add default allowed IPs.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 15:58:01 +02:00 |
Jeroen Leenarts
|
978296c965
|
Update steps in READMe.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 14:50:01 +02:00 |
Jeroen Leenarts
|
6cfab94713
|
Dump and expose WireGuard Go version info.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 08:07:04 +02:00 |
Jeroen Leenarts
|
2307bf25b5
|
Assign correct copyright.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-05 07:48:36 +02:00 |
Jeroen Leenarts
|
54c9305ae4
|
A server address is required for proper saving of protocol configuration.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-04 22:49:37 +02:00 |
Jeroen Leenarts
|
675227bac5
|
Remove some silly TODOs.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-04 22:49:03 +02:00 |
Jeroen Leenarts
|
40836c2150
|
Fix entitlement.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
|
2018-08-04 22:48:51 +02:00 |