Commit graph

367 commits

Author SHA1 Message Date
afeiszli
7c56420b9f backup logic for relay failing, dont allow server to be relayed 2022-02-06 11:36:38 -05:00
afeiszli
bea7467210 fixing tests 2022-02-05 15:50:29 -05:00
afeiszli
dd79186a81 changing validation 2022-02-05 15:50:29 -05:00
afeiszli
7bf864a387 fixing dns and various logs 2022-02-05 15:50:29 -05:00
0xdcarns
1a7a8beabc added server pulls upon server initialize if networks present 2022-02-05 13:12:07 -05:00
afeiszli
2cbf08ad1e adding logic for key checks, OS on server 2022-02-04 14:19:26 -05:00
afeiszli
83c4f99192 set relayed nodes UDP to off and update them 2022-02-04 11:54:50 -05:00
afeiszli
a693217feb switch for udp hole punch 2022-02-03 09:51:37 -05:00
afeiszli
239b9d36fc change queue identifier from server.ID to Network.NetID 2022-02-03 09:51:37 -05:00
0xdcarns
f7258bf98f refactored some client leave & cache and server join logic 2022-02-03 09:51:37 -05:00
afeiszli
7c4e8b2b4a removing peer cache 2022-02-01 23:30:10 -05:00
afeiszli
f6c68bd209 removing UUID gen from client side 2022-02-01 22:01:30 -05:00
afeiszli
c8154ffa5d remove GetNodeByIDOrMacAddress 2022-02-01 21:50:11 -05:00
afeiszli
d2467e13f3 allow adding address 2022-02-01 15:27:00 -05:00
afeiszli
c210a223ea set networkservers on network create 2022-02-01 10:08:44 -05:00
afeiszli
1e5a0e9d04 fix server self updates 2022-01-31 23:18:58 -05:00
afeiszli
86ba127b3b change order of operations 2022-01-31 20:38:16 -05:00
afeiszli
e778136a19 change order of operations 2022-01-31 20:36:09 -05:00
afeiszli
770b4e5892 change order of operations 2022-01-31 20:33:15 -05:00
afeiszli
467ebfd7d7 server address enhancements 2022-01-31 20:29:00 -05:00
afeiszli
c6252764e8 fix peer sync 2022-01-31 17:13:19 -05:00
0xdcarns
4823566125 debug again 2022-01-31 11:20:59 -05:00
0xdcarns
36b319c772 debug 2022-01-31 11:20:11 -05:00
0xdcarns
2a4a30f937 added debug stuff 2022-01-31 11:20:11 -05:00
0xdcarns
4740551473 iface delta 2022-01-31 11:19:19 -05:00
afeiszli
3e130fe9f8 cleaning server side peer logic 2022-01-31 11:18:38 -05:00
0xdcarns
ae4b1bee57 edited peer update 2022-01-31 11:18:38 -05:00
Matthew R Kasun
c421c1410b save servAddr to database on join 2022-01-30 13:37:10 -05:00
Matthew R Kasun
7ac0bfd13a Merge remote-tracking branch 'origin/develop' into feature_v0.10.0_serverPings 2022-01-30 09:18:24 -05:00
Matthew R Kasun
20569ee8ec Merge remote-tracking branch 'origin/develop' into feature_v0.10.0_serverPings 2022-01-30 05:55:52 -05:00
0xdcarns
ad79f2ea1f addresses review comments 2022-01-29 18:18:46 -05:00
0xdcarns
95b9444325 log cleanup 2022-01-29 18:18:46 -05:00
0xdcarns
410efbab50 switched to eliptical strategy 2022-01-29 18:18:46 -05:00
0xdcarns
3dadb8dcbf added e.. 2022-01-29 18:18:46 -05:00
0xdcarns
aa22afeb95 tracking mod 2022-01-29 18:18:46 -05:00
0xdcarns
ac632a75b7 refactored struct 2022-01-29 18:18:46 -05:00
0xdcarns
3483e45beb added struct to model 2022-01-29 18:18:46 -05:00
0xdcarns
db5fc322b8 remove db read 2022-01-29 18:18:46 -05:00
0xdcarns
c40c905b3b edited chunk size 2022-01-29 18:18:46 -05:00
0xdcarns
ef20139ce1 not sure what's going on 2022-01-29 18:18:46 -05:00
0xdcarns
19426fc3e1 added a cleanup 2022-01-29 18:18:46 -05:00
0xdcarns
48d6d57f25 trying again 2022-01-29 18:18:46 -05:00
0xdcarns
bb8d76a96e bug 2022-01-29 18:18:46 -05:00
0xdcarns
7be2b0e09d adjusted to byte buffer 2022-01-29 18:18:46 -05:00
0xdcarns
b8a1522845 logs 2022-01-29 18:18:46 -05:00
0xdcarns
d27dee0691 debugging 2022-01-29 18:18:46 -05:00
0xdcarns
0015d6fdf8 added encryption/decryption strategy 2022-01-29 18:18:46 -05:00
0xdcarns
cd4e2c57d6 added new struct and adapted to funcs 2022-01-29 18:15:52 -05:00
0xdcarns
26a0d8bdbe initial commit 2022-01-29 18:15:52 -05:00
dcarns
a50755fb0e
Merge pull request #651 from zc2638/fix/dns-dir
fix create dnsconfig dir
2022-01-28 08:42:50 -05:00
zc
e8ce07be8c fix create dnsconfig dir 2022-01-28 11:07:56 +08:00
Matthew R Kasun
513f85ede7 refactor server pings 2022-01-27 09:48:32 -05:00
Matthew R Kasun
76ae673363 Merge branch 'develop' into feature_v0.10.0_serverPings 2022-01-27 06:45:52 -05:00
dcarns
23e294d05f
Merge pull request #648 from gravitl/bugfix_v0.10.0_freebsd-gateways
fix for GRA-129 prevent freebsd from being a gateway
2022-01-26 14:40:28 -05:00
0xdcarns
27b29baf32 added new struct and adapted to funcs 2022-01-26 10:40:39 -05:00
Matthew R Kasun
dd62e90924 fix for GRA-129 prevent freebsd from being a gateway 2022-01-26 09:04:30 -05:00
0xdcarns
d6554ef081 initial commit 2022-01-25 22:14:31 -05:00
dcarns
59685731c1
Merge pull request #645 from gravitl/feature-messageQueue
Feature message queue
2022-01-25 19:25:38 -05:00
Matthew R Kasun
03d17a0520 addressing review comments 2022-01-25 18:15:27 -05:00
0xdcarns
0874ad1cd8 updated to log errors 2022-01-25 12:36:25 -05:00
0xdcarns
7846420fa7 added timer hooks 2022-01-25 11:00:56 -05:00
Matthew R Kasun
bc54bbf167 manual rebase to develop 2022-01-25 07:31:50 -05:00
Matthew R Kasun
a5b9760438 add persistentkeepalive to ShouldPeersUpdate 2022-01-24 13:20:23 -05:00
Matthew R Kasun
c239ee3787 Merge branch 'develop' into feature-messageQueue 2022-01-24 06:21:21 -05:00
Matthew R Kasun
b2b50ffa9c fix GetNetworkNodes to just return networks nodes instead of all nodes in system plus a second copy of the networknode 2022-01-22 10:38:11 -05:00
Matthew R Kasun
95dea6a4ba fix for issue #621 2022-01-21 13:15:54 -05:00
Matthew R Kasun
2310977391 refactor to reduce number of types of message in message queue simplifying the subscribers and publishers 2022-01-21 05:19:17 -05:00
afeiszli
4d2a85f879 adding telemetry 2022-01-20 17:50:42 -05:00
Matthew R Kasun
d4399d1321 rebase fixes 2022-01-20 16:39:54 -05:00
Matthew R Kasun
b15a5112fc fixes due to rebase 2022-01-20 15:41:06 -05:00
Matthew R Kasun
e7b9715cf7 fix publish peers 2022-01-20 13:14:59 -05:00
0xdcarns
bed4eb25ed rebased 2022-01-20 13:00:04 -05:00
0xdcarns
7700a68d5b Cover a legacy case, allow server to run with uuids 2022-01-20 13:00:04 -05:00
0xdcarns
e4161426f1 removed cleanup function, kind of pointless 2022-01-20 13:00:04 -05:00
0xdcarns
d2fb5fc4d5 cleaned up logs 2022-01-20 13:00:04 -05:00
0xdcarns
a394bf7424 server fix 2022-01-20 13:00:04 -05:00
0xdcarns
0f657b4378 adapted node routes further to new id 2022-01-20 12:59:31 -05:00
0xdcarns
73c982b9fa updated routes to use uuid 2022-01-20 12:59:31 -05:00
0xdcarns
ff79860487 updated routes to use uuid 2022-01-20 12:59:31 -05:00
0xdcarns
6ad6e2078b added hotfixes 2022-01-20 12:59:31 -05:00
0xdcarns
e9e6b4c2e3 testing continued 2022-01-20 12:59:31 -05:00
0xdcarns
df23b50165 refactored more 2022-01-20 12:59:31 -05:00
0xdcarns
47c00bd30f missave 2022-01-20 12:59:07 -05:00
0xdcarns
cd5bce8812 restructuring continued 2022-01-20 12:58:49 -05:00
0xdcarns
de4e317aea began transition 2022-01-20 12:56:34 -05:00
0xdcarns
2430eb0a47 prevent nodes from changing address out of range or to .0 or .255 addresses 2022-01-19 10:47:23 -05:00
0xdcarns
5c1300997c rough draft 2022-01-18 11:32:21 -05:00
0xdcarns
134a09670f refactor 2022-01-18 10:55:02 -05:00
0xdcarns
c239465d42 debug log 2022-01-18 09:56:57 -05:00
0xdcarns
aebe39e46b testing continued 2022-01-18 09:51:45 -05:00
0xdcarns
a5495300d0 added logs 2022-01-18 09:06:43 -05:00
0xdcarns
916866f73c began refactor 2022-01-17 18:35:16 -05:00
0xdcarns
2a5405982e began server client reactive 2022-01-17 18:35:16 -05:00
0xdcarns
0e7dcd2d5f rebased 2022-01-17 14:22:39 -05:00
0xdcarns
2fe8025afa Cover a legacy case, allow server to run with uuids 2022-01-17 14:22:39 -05:00
0xdcarns
3677696f56 removed cleanup function, kind of pointless 2022-01-17 14:22:39 -05:00
0xdcarns
087f7cdb95 cleaned up logs 2022-01-17 14:22:39 -05:00
0xdcarns
a1a7811a68 server fix 2022-01-17 14:22:39 -05:00
0xdcarns
0502ff131c adapted node routes further to new id 2022-01-17 14:21:40 -05:00
0xdcarns
96aec541e3 updated routes to use uuid 2022-01-17 14:21:40 -05:00
0xdcarns
52195cd040 updated routes to use uuid 2022-01-17 14:21:40 -05:00
0xdcarns
9af3688b24 fixed egress to use id 2022-01-17 14:21:40 -05:00
0xdcarns
ec8d9baa29 added hotfixes 2022-01-17 14:21:40 -05:00
0xdcarns
b961b6a1f5 testing continued 2022-01-17 14:21:40 -05:00
0xdcarns
545f45d86d refactored more 2022-01-17 14:21:40 -05:00
0xdcarns
a4a8c368d4 missave 2022-01-17 14:21:40 -05:00
0xdcarns
64e7791011 restructuring continued 2022-01-17 14:21:40 -05:00
0xdcarns
c033be41bb began transition 2022-01-17 14:21:40 -05:00
0xdcarns
3a43f32f8c redacted server local ip get 2022-01-13 12:43:17 -05:00
0xdcarns
02beb4b4dc simplified 2022-01-12 20:11:31 -05:00
0xdcarns
a36ea14cf5 another adjustment 2022-01-12 20:06:10 -05:00
0xdcarns
ef34fa1a73 added islocal line 2022-01-12 19:50:00 -05:00
0xdcarns
72206817bb added local range logic 2022-01-12 19:39:10 -05:00
0xdcarns
43b9e73eaa updated ioutil refs and composes 2022-01-06 15:05:38 -05:00
Matthew R Kasun
781de684a0 remove nameserver from call to CreateWireGuardConf 2022-01-06 09:13:49 -05:00
0xdcarns
9ded75d741 fixed setting default node postdown 2022-01-05 14:14:32 -05:00
afeiszli
1081e63cc1 fixing egress on relay 2022-01-04 13:54:03 -05:00
afeiszli
1c9cb819dc adding egress to relay 2022-01-04 13:45:18 -05:00
0xdcarns
4ca0e856bc added post commands for wg quick 2022-01-04 13:13:42 -05:00
0xdcarns
dcaba24b11 added egress relayed addrs to relayed nodes 2022-01-03 11:30:02 -05:00
0xdcarns
83fce6226a added DNS call to server 2022-01-02 10:51:22 -05:00
0xdcarns
c2460c576e nil pointers, update version 2021-12-11 12:07:54 -05:00
0xdcarns
548997f9ef optimize further 2021-12-10 21:09:42 -05:00
0xdcarns
e45a485bce added comments, optimized memory 2021-12-10 15:01:10 -05:00
0xdcarns
85e8c0abb6 memory issue work 2021-12-08 16:52:32 -05:00
0xdcarns
6215ea2db8 adjusted values to pointers for a lot of functions 2021-12-07 15:04:00 -05:00
0xdcarns
0c6c09caa9 organized http logic, renamed files 2021-12-07 12:46:55 -05:00
afeiszli
932712619a remade server logs 2021-12-06 15:31:08 -05:00
afeiszli
801919ab0d fixing client issues for uspace, fwmark, vpn 2021-11-29 04:34:11 -05:00
0xdcarns
e521c5936a added logic for future use 2021-11-23 09:47:49 -05:00
0xdcarns
c495decbb2 added remove private key when server node gets deleted 2021-11-23 09:30:11 -05:00
afeiszli
1a16e5ad25 fixed dns and keys 2021-11-16 12:20:48 -05:00
afeiszli
84c8299bb0 freebsd working 2021-11-15 11:42:52 -05:00
afeiszli
05d27c8af3 remote route on delete 2021-11-14 19:17:30 -05:00
afeiszli
437955ab90 saving to work on linux 2021-11-14 16:50:20 -05:00
afeiszli
5b3b6119ae adding sync 2021-11-12 11:24:29 -05:00
afeiszli
c2948a3671 added fwmark 2021-11-12 08:53:50 -05:00
0xdcarns
d14573169b modified logging 2021-10-27 21:36:49 -04:00
0xdcarns
f91dae5355 refactored unneccesary db call 2021-10-27 10:02:39 -04:00
0xdcarns
e4e8f368d6 logs 2 2021-10-27 09:27:52 -04:00
0xdcarns
67a65605a4 logs 2021-10-27 08:52:51 -04:00
0xdcarns
7ddf36520a rebased on develop 2021-10-26 12:58:50 -04:00
0xdcarns
8f72ecbaa0 refactored logic 2021-10-26 12:50:34 -04:00
0xdcarns
6891b52cee updated logs, ensured admins could not be edited 2021-10-25 16:38:59 -04:00
0xdcarns
c002c30ba8 added ability for admisn to change user's networks 2021-10-25 14:51:52 -04:00
0xdcarns
36d60eba64 github auth added 2021-10-22 13:12:03 -04:00
0xdcarns
7939e5968f good first draft, fixed test 2021-10-21 20:32:23 -04:00
0xdcarns
4e4e8b3ab5 began oauth implementation 2021-10-21 15:28:58 -04:00
afeiszli
8a1b7d558b Merge branch 'develop' of https://github.com/gravitl/netmaker into hotfix_v0.8.4_netclient_dns 2021-10-20 11:07:14 -04:00
afeiszli
c26f887e27 updating install script and README 2021-10-20 11:06:54 -04:00
0xdcarns
51c1973b21 added ability to remove local instance of netmaker 2021-10-20 09:22:05 -04:00
afeiszli
fb4d2d1272 change version of ubuntu 2021-10-19 15:53:01 -04:00
afeiszli
445df67030 updated helm charts 2021-10-17 15:31:37 -04:00
afeiszli
a39ef16394 added kubernetes listen port 2021-10-15 14:15:32 -04:00
0xdcarns
d2a1ce9e25 log 2021-10-15 08:41:38 -04:00
0xdcarns
5db0e5ea4d merge fix 2021-10-15 08:40:42 -04:00
0xdcarns
618808bff1 changed to dissallow udp hole punch on server nodes 2021-10-15 08:39:10 -04:00
afeiszli
eaa7597a05 merging userspace work 2021-10-14 23:38:01 -04:00
afeiszli
6a96785419 Merge branch 'feature_v0.8.4_serverconfs' of https://github.com/gravitl/netmaker into feature_v0.8.4_serverconfs 2021-10-14 22:03:10 -04:00
afeiszli
e5ca943542 userspace logic 2021-10-14 22:03:05 -04:00
0xdcarns
7f6a288e21 changed some logs and added bool for server pull 2021-10-14 12:15:25 -04:00
0xdcarns
00dd278de4 rough draft of server transplanting 2021-10-13 15:15:20 -04:00
0xdcarns
340f50c535 transplanted setwgconfig and pull 2021-10-13 10:02:04 -04:00
0xdcarns
3f2e4ab764 transplanted join. 2021-10-12 15:44:19 -04:00
afeiszli
875b1d72b9 adding userspace docker server implementation 2021-10-08 22:46:39 -04:00
0xdcarns
d7cafbbc4c code linting 2021-10-08 15:07:12 -04:00
0xdcarns
989676e77f Combined client + server code, Added HA ability, minor bug fixes 2021-10-06 17:48:54 -04:00