Commit Graph

407 Commits

Author SHA1 Message Date
afeiszli
93a25bb9a6 adding freebsd logic and using wgctrl.Device 2022-04-25 11:36:09 -04:00
afeiszli
9a66674a5c minor logic revisions 2022-04-25 11:36:09 -04:00
afeiszli
91ca96534b adding comments, removing bad check 2022-04-25 11:36:09 -04:00
afeiszli
6a90cd803a publishing port changes 2022-04-25 11:36:08 -04:00
afeiszli
5f303cb50a fixing localport issues 2022-04-25 11:34:55 -04:00
afeiszli
ccc0ed851d adding local listen port 2022-04-25 11:34:32 -04:00
Matthew R. Kasun
d626cf0e9b remove write and return error 2022-04-25 11:11:44 -04:00
Matthew R. Kasun
38309aab20 remove cfg.Registered 2022-04-25 11:07:21 -04:00
Matthew R. Kasun
f5aa1d1e62 reorder register/join 2022-04-25 10:38:29 -04:00
Matthew R. Kasun
a8b1d48e02 more certificate cleanup 2022-04-25 06:38:20 -04:00
Matthew R. Kasun
8f8272aad7 certificate cleanup 2022-04-25 06:33:06 -04:00
Matthew R. Kasun
747d6bc692 remove comms network leftovers
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-22 05:21:35 -04:00
Matthew R. Kasun
7152f6ccd4 remove references to grpc/comms net 2022-04-21 15:53:44 -04:00
Matthew R. Kasun
886ec31553 remove grpc 2022-04-21 15:04:44 -04:00
Matthew R. Kasun
955e0e544c join as api call
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
12dfc5f820 refactor leave to use API
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
b7a18eac1f refactor pull to use api
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 15:46:19 -04:00
Matthew R. Kasun
adfa5236f8 review comments addressed
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-20 09:26:23 -04:00
Matthew R. Kasun
9eddb971cc fix logic for key/cert gen on start
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-19 07:42:28 -04:00
Matthew R. Kasun
2b1f20e94b changes from code review
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 18:21:55 -04:00
Matthew R. Kasun
924403d5b4 ncutils.GetNetclientServerPath
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-18 15:30:59 -04:00
Matthew R. Kasun
f8fe382c02 cleanup and comments 2022-04-16 16:43:10 -04:00
Matthew R. Kasun
de7ca68c23 join after register 2022-04-16 15:35:05 -04:00
Matthew R. Kasun
a2805ddc80 register/cert gen 2022-04-16 08:27:22 -04:00
Matthew R. Kasun
4f19beda00 save returned certs/keys 2022-04-15 16:07:19 -04:00
0xdcarns
08e219cdcc idk 2022-04-15 15:20:46 -04:00
0xdcarns
1cf9ac77e9 changed encoding of structs 2022-04-15 15:03:54 -04:00
Matthew R. Kasun
a6c388db67 use openssl to gen client key/cert 2022-04-15 13:32:10 -04:00
Matthew R. Kasun
84de5c5216 use issuer's public key for certs 2022-04-15 09:54:35 -04:00
Matthew R. Kasun
d50f7a8c0b revert to gen csr on client 2022-04-14 14:42:46 -04:00
Matthew R. Kasun
fb6059e4a1 wip 2022-04-14 14:14:37 -04:00
Matthew R. Kasun
38cf8b0ceb gen csr on server 2022-04-14 11:40:13 -04:00
Matthew R. Kasun
9677957023 logging 2022-04-14 09:22:07 -04:00
Matthew R. Kasun
5008462b3e send csr and get cert 2022-04-14 07:15:50 -04:00
Matthew R. Kasun
4525698f87 return struct 2022-04-14 06:08:51 -04:00
Matthew R. Kasun
3e6a9be9ba return struct 2022-04-13 18:22:03 -04:00
Matthew R. Kasun
92d3e40bde logging 2022-04-13 17:33:40 -04:00
Matthew R. Kasun
6aa1a68a6f register command - client 2022-04-13 15:25:35 -04:00
Matthew R. Kasun
199ea15b1d add VerifyConnection func to NewTLSConf as InsecureSkipVerify:false doesn't work
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-13 11:58:15 -04:00
Matthew R. Kasun
a0e7163e7e program to generate initial server certs/key 2022-04-12 17:19:24 -04:00
Matthew R. Kasun
ab8cf43b3b remove debug logs
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-12 15:43:53 -04:00
Matthew R. Kasun
9897b2228c mqttSetup refactor
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-04-12 15:16:06 -04:00
Matthew R. Kasun
935567761b mq direct to server public ip 2022-04-12 10:43:02 -04:00
dcarns
94d843c3bd Merge pull request #953 from gravitl/feature_v0.12.2_list_id
Feature v0.12.2 list
2022-03-23 20:33:35 -04:00
john s
d1fb0b90af netclient: math.Rand -> crypto.Rand (#956)
* netclient: math.Rand -> crypto.Rand

Signed-off-by: John Sahhar <john@gravitl.com>

* netclient: math.Rand -> crypto.Rand

* add tests

Signed-off-by: John Sahhar <john@gravitl.com>

* netclient: math.Rand -> crypto.Rand

* add test

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-23 12:06:26 -06:00
0xdcarns
a477eaa767 added local node ID's to list command 2022-03-22 15:33:38 -04:00
0xdcarns
4cd75f2985 initial commit 2022-03-22 15:13:48 -04:00
Matthew R. Kasun
11b1098390 replace ncutil.Log/PrintLog with logger.Log 2022-03-21 11:27:25 -04:00
dcarns
9efb15e688 Merge pull request #929 from gravitl/bugfix_v0.12.0_keepalive
keepalive handling updates
2022-03-21 10:41:01 -04:00
dcarns
b397f5014f Merge pull request #918 from gravitl/bugfix_v0.12.1_hostctl_profile_names
use interface as hostctl profile
2022-03-21 10:24:28 -04:00