Commit Graph

89 Commits

Author SHA1 Message Date
Callan Bryant
586292a25a
sync on add/remove 2020-03-05 20:43:31 +00:00
Callan Bryant
0380753104
add remove cmd 2020-03-05 20:35:51 +00:00
Callan Bryant
b6bd2d33e1
move sync fn to sync.go 2020-03-04 22:50:44 +00:00
Callan Bryant
5a71debc59
working (empty) report generation 2020-03-04 22:49:27 +00:00
Callan Bryant
e7fe33fe76
start implementation of report 2020-03-04 22:23:32 +00:00
Callan Bryant
f8eeda36f9
update -> sync (again, changed my mind) 2020-03-04 22:12:31 +00:00
Callan Bryant
c04eeac00f
implement down 2020-03-04 22:11:08 +00:00
Callan Bryant
d9f197c06f
implement update cmd 2020-03-04 22:06:15 +00:00
Callan Bryant
1572a78d6c
check error in correct place 2020-03-04 22:04:13 +00:00
Callan Bryant
f00e344a72
separate link creation / device configuration 2020-03-04 22:01:30 +00:00
Callan Bryant
ccc45f8368
close wg client 2020-03-04 21:18:34 +00:00
Callan Bryant
f4a41b5c42
also bring iface up 2020-03-04 21:09:12 +00:00
Callan Bryant
862cc820bc
correct mask 2020-03-04 20:34:11 +00:00
Callan Bryant
e5dcbd8e35
successful adding of peers! 2020-03-04 20:30:05 +00:00
Callan Bryant
deef2574e7
add dead codde to bring up iface 2020-03-04 19:56:57 +00:00
Callan Bryant
c7e9210a96
use []PeerConfig literal 2020-03-04 19:47:27 +00:00
Callan Bryant
d81bd72a5f
make networks required for peer 2020-03-04 19:46:39 +00:00
Callan Bryant
4bb17e043f
start attempt at interface creation 2020-03-04 19:43:54 +00:00
Callan Bryant
909e6ed264
switch to status 2020-03-03 23:43:55 +00:00
Callan Bryant
c1c4cccce2
fmt 2020-03-03 23:41:55 +00:00
Callan Bryant
03b0a5d4fb
add comments on what statuses mean 2020-03-03 23:37:58 +00:00
Callan Bryant
d8bfa083d2
comment about NATs 2020-03-03 23:32:56 +00:00
Callan Bryant
dc703e20dc
remove hyphen 2020-03-03 23:32:07 +00:00
Callan Bryant
1011cf5e66
use ExitFail instead of panic 2020-03-03 23:11:54 +00:00
Callan Bryant
b87948de55
enable validation where appropriate 2020-03-03 23:09:54 +00:00
Callan Bryant
020de337ce
check config file early for init/add 2020-03-03 22:33:48 +00:00
Callan Bryant
ca310b18ec
update report types with config changes 2020-03-03 21:22:37 +00:00
Callan Bryant
c2aac62f27
deal with private IP separately 2020-03-03 22:30:36 +00:00
Callan Bryant
5cc866fe77
separate config types from report types 2020-03-03 22:08:52 +00:00
Callan Bryant
125f3c4e26
working config generation 2020-03-03 21:28:06 +00:00
Callan Bryant
8f2ac50590
split types into extypes 2020-03-03 20:25:48 +00:00
Callan Bryant
06d1642b16
fallback to icanhazip for external IP detection 2020-03-02 22:31:52 +00:00
Callan Bryant
335d232727
correct single host mask 2020-03-02 21:39:45 +00:00
Callan Bryant
1fdf4fe71f
prompts: stderr< + misc 2020-03-02 21:36:41 +00:00
Callan Bryant
8e29d1cba7
re-order DsnetConfig 2020-03-02 21:17:53 +00:00
Callan Bryant
994814b180
auto external IP detection 2020-03-02 21:11:45 +00:00
Callan Bryant
c4cb15c45e
separate internal/external IP 2020-03-02 21:02:21 +00:00
Callan Bryant
e02a1552e9
MustChooseIP -> MustAllocateIP 2020-03-02 20:11:33 +00:00
Callan Bryant
089ed04173
record / allocate IP 2020-03-02 20:10:48 +00:00
Callan Bryant
19668c0334
start peer conf file, update README 2020-03-02 19:57:52 +00:00
Callan Bryant
8baaa06d84
reorder dsnet config 2020-03-02 19:41:36 +00:00
Callan Bryant
9a214d8987
fix net JSON parsing 2020-03-02 19:38:00 +00:00
Callan Bryant
cf93b219a1
correct IPAllocated() 2020-03-02 19:31:29 +00:00
Callan Bryant
e0f753d3d0
ChooseIP -> MustChooseIP 2020-03-02 19:29:08 +00:00
Callan Bryant
6700a47a75
fix IP allocation logic 2020-03-02 19:27:54 +00:00
Callan Bryant
11ed6be6d1
add validationof hostname + IP 2020-03-02 19:26:08 +00:00
Callan Bryant
af7484c84b
allocate IP to peer 2020-03-02 19:13:47 +00:00
Callan Bryant
faf0e59887
correct IP enumeration 2020-03-02 19:13:38 +00:00
Callan Bryant
2fcda8b90a
go fmt 2020-03-02 19:03:00 +00:00
Callan Bryant
12e8158725
avoid broadcast addr 2020-03-02 19:02:09 +00:00