Commit Graph

231 Commits

Author SHA1 Message Date
Callan Bryant
38dd7c6d95
add IPv6 info to report 2020-11-02 18:26:14 +00:00
Callan Bryant
f1e1a6838f
fix allowedIPs construction where networks are provided 2020-11-02 17:56:12 +00:00
Callan Bryant
aa785b9ab6
split off config generation 2020-11-01 09:17:25 +00:00
Callan Bryant
5ff1659d22
specify that wg-quick is default 2020-10-30 13:08:39 +00:00
Callan Bryant
d042250c1a
create deterministic wg interface names for vyatta 2020-10-30 13:02:46 +00:00
Callan Bryant
c8c27e8ce0
add IPv6 to interface 2020-10-30 12:34:35 +00:00
Callan Bryant
227ed206a4
Merge pull request #22 from naggie/ipv6
IPv6 support
2020-10-29 17:00:47 +00:00
Callan Bryant
4ad58382f6
go fmt 2020-10-28 00:39:15 +00:00
Callan Bryant
135fa12f00
update docs 2020-10-27 22:19:58 +00:00
Callan Bryant
112379c70a
remove redundant allowed IP enumeration 2020-10-27 22:00:21 +00:00
Callan Bryant
0481996116
add allowedIPs conditionally 2020-10-27 21:57:44 +00:00
Callan Bryant
a6bacff44d
update getwgpeerconfgs 2020-10-27 21:42:21 +00:00
Callan Bryant
047a0dc7be
fix json marshalling of uninitialised JSONIPnet 2020-10-27 21:21:22 +00:00
Callan Bryant
ddb0b4c549
conditional IPv4/6 and fix vyatta 2020-10-27 21:03:45 +00:00
Callan Bryant
63b22e0554
only save peer allowed IP of net version is defined 2020-10-27 00:00:38 +00:00
Callan Bryant
c4d2898170
correct comment 2020-10-26 23:49:12 +00:00
Callan Bryant
5477a321b2
fix CIDR notation for Peer IPs 2020-10-26 23:37:19 +00:00
Callan Bryant
dfd617273b
add missing bracket 2020-10-26 22:47:48 +00:00
Callan Bryant
06905db6df
allow empty IPNets 2020-10-26 22:47:02 +00:00
Callan Bryant
555ffad58b
prevent segfault when parsing empty CIDR 2020-10-26 22:44:09 +00:00
Callan Bryant
b770d387bf
fix unititialised IPNet marshalling 2020-10-26 22:39:08 +00:00
Callan Bryant
34ff77b27a
...also for vyatta 2020-10-26 21:39:55 +00:00
Callan Bryant
5a870dab60
use ExternalIP6 if ExternalIP not available 2020-10-26 18:27:35 +00:00
Callan Bryant
608dbf176f
check config contains external IPv6/IPv4 2020-10-26 18:11:56 +00:00
Callan Bryant
965fc367ac
check for ULA and no IP 2020-10-26 18:10:39 +00:00
Callan Bryant
f57fa3473d
fix lookup of v6: do not require 2020-10-26 17:58:15 +00:00
Callan Bryant
d58b2f5a54
detect IPv6 and IPv4 for server 2020-10-26 08:27:22 +00:00
Callan Bryant
7bbe28a145
add CIDR subnet properly 2020-10-26 08:08:39 +00:00
Callan Bryant
e7da49c1a8
don't use string respresentations unnecessarily 2020-10-25 22:59:57 +00:00
Callan Bryant
e7fb9dc5ce
IPv6 config to template 2020-10-25 22:56:49 +00:00
Callan Bryant
f7f06f00fa
check for IP networks before allocating 2020-10-25 22:27:33 +00:00
Callan Bryant
9a942c1040
remove debug 2020-10-25 21:02:06 +00:00
Callan Bryant
ac9baf0039
fc -> fd 2020-10-25 15:15:46 +00:00
Callan Bryant
cb75689825
move allocation out of loop 2020-10-25 14:59:46 +00:00
Callan Bryant
19f25ff847
working psudorandom v6 allocator 2020-10-25 14:57:18 +00:00
Callan Bryant
64a73d18ed
rename getULA to getULAnet 2020-10-25 10:06:25 +00:00
Callan Bryant
af3e1b2ea9
make allocation universal, given a network 2020-10-25 08:23:43 +00:00
Callan Bryant
3e20f93bd7
fix network length 2020-10-25 08:12:20 +00:00
Callan Bryant
28f436c41b
add missing newline 2020-10-25 08:07:43 +00:00
Callan Bryant
cb44ff1472
implement getULA 2020-10-25 08:06:25 +00:00
Callan Bryant
330b986aa4
ipallocated -- also check ipv6 2020-10-24 21:08:12 +01:00
Callan Bryant
6d9c9c1912
remove ipVersion type 2020-10-24 21:06:28 +01:00
Callan Bryant
055a1adce3
add ipversion type 2020-10-24 21:06:15 +01:00
Callan Bryant
d07d267c78
add IPv6 attrs to config + go fmt 2020-10-24 20:51:47 +01:00
Callan Bryant
952cb44110
user InterfaceName for interface description 2020-10-19 18:23:59 +01:00
Callan Bryant
53483ffaee
set interface description 2020-10-19 03:37:21 +01:00
Callan Bryant
0f7ea82d8b
correct preshared-key association 2020-10-19 19:25:56 +01:00
Callan Bryant
ce9091e8bc
add missing pubkey 2020-10-19 03:17:06 +01:00
Callan Bryant
fceddc55dd
choose a valid edgeos interface name 2020-10-19 17:52:54 +01:00
Callan Bryant
d0e8eb74ec
remove [Interfaces] left over from before, re-order 2020-10-19 17:49:36 +01:00