Commit graph

384 commits

Author SHA1 Message Date
Abhishek Kondur eba6b98e10 add validate tag for ingress and egress 2022-09-06 19:42:08 +05:30
Alex Feiszli a95e0d25c6
Merge pull request #1499 from k4s0/develop
added new controller for creating custom ExtClient
2022-09-02 14:49:58 -04:00
Matthew R. Kasun ecc9ef5aac clean up nft rules 2022-09-02 11:01:19 -04:00
Casini Lorenzo bcddc3f3c5 Fix url prameter to body
changed from url parameters to request body
2022-09-01 15:45:54 +02:00
Matthew R. Kasun ea3a1933e1 add ip6table rules for gateways 2022-09-01 08:10:49 -04:00
afeiszli 8fc9dac969 adding security fixes 2022-08-31 11:38:29 -04:00
0xdcarns c05320a323 initial logic added 2022-08-30 10:52:04 -04:00
Alex Feiszli 45df9b6bac
Merge pull request #1467 from gravitl/refactor_v0.14.7_server_routing
refactor server routing
2022-08-22 09:37:10 -04:00
Matthew R. Kasun f536f0465c check firewall type on gateway creation 2022-08-19 15:32:25 -04:00
Matthew R. Kasun abadb28a56 remove unused functions to pass staticchecks 2022-08-19 14:38:36 -04:00
Matthew R. Kasun 184e5a66d9 refactor server routing 2022-08-19 11:25:39 -04:00
Matthew R Kasun 65723e23dd
Merge branch 'develop' into feature_v0.14.8_internet_gateway 2022-08-09 13:55:16 -04:00
Matthew R. Kasun 85cb88f0ad use 0.0.0.0/0 ::/0 as egress range for internet gateways 2022-08-09 13:51:28 -04:00
dcarns c7a3d2b098
Merge pull request #1449 from gravitl/feature_v0.14.7_translateiftablestonftables
Feature v0.14.7 translateiftablestonftables
2022-08-09 09:06:20 -04:00
cameronts a6660bb377 Pull firewall command building to separate functions for easier maintenance/reuse. Change DeleteIngressGateway's approach to preserving the egress gateway (if present). 2022-08-07 19:22:54 -07:00
0xdcarns de91533372 added better state management to make OAuth sign-ins HA 2022-08-04 10:03:39 -04:00
cameronts 7c2fce3a55 Change to expandable switch-based firewall detection. 2022-08-03 12:18:04 -07:00
cameronts e6d7c95669 Add netclient detection of nftables. 2022-08-02 15:01:45 -07:00
dcarns 4bc8afd731
Merge pull request #1399 from Exchizz/feature/disable-nat-for-egress-gw
Add field to /api/nodes/wg-net/<network id>/creategateway for enabling/disabling NAT
2022-07-22 14:36:41 -04:00
cameronts 38e4950ed1 Fixed by adding validation tags.
To test: run go test ./... -test.v (tested with go 1.18.4).
2022-07-20 12:32:48 -07:00
Mathias Neerup 0b4aca18db Make NatEnabled string instead of boolean + add tests 2022-07-20 13:01:28 +02:00
Mathias Neerup 4cc846a29c Fix typo 2022-07-19 21:37:38 +02:00
Mathias Neerup f9666c0a66 Add option to select if source NATing should be enabled or not 2022-07-19 16:28:44 +02:00
0xdcarns f8b1049c31 removed Gravitl from ascii logo 2022-07-06 09:34:57 -04:00
Matthew R. Kasun 0c4f5b100b update validation of usernames 2022-06-27 13:51:09 -04:00
Matthew R. Kasun 4dbcd0a630 switch to jwt.RegisterdClaims 2022-06-27 10:47:28 -04:00
ygelfand 3a457931fe retain traffickeys
Signed-off-by: ygelfand <yuri@shlitz.com>
2022-06-09 11:03:32 -04:00
afeiszli f9d219c0ec changing yaml mapping 2022-06-03 11:31:57 -04:00
afeiszli 8d422526b3 refactoring servercfg 2022-05-31 12:07:56 -04:00
afeiszli 0865a535c7 changing broker retrieval/setting logic 2022-05-30 12:39:33 -04:00
Matthew R. Kasun fef31752bd send server version in peer update message 2022-05-25 15:21:22 -04:00
afeiszli a2a9e2b788 changing auth params to ID from MacAddress 2022-05-23 15:24:09 -04:00
afeiszli 3f038ab951 isStatic now only represents whether the Endpoint var is static 2022-05-23 15:24:09 -04:00
0xdcarns 68b52279ae added peers to pull/join responses 2022-04-25 16:30:18 -04:00
dcarns 1b7efe1ced
Merge pull request #1029 from gravitl/feature_v0.13.0_btr_serv_reset
added initial notification to clients on server startup
2022-04-25 13:40:51 -04:00
0xdcarns 99abd9666d removed required status for ipv6 and added check on create network 2022-04-25 13:10:55 -04:00
0xdcarns dc12b1e418 route changes + primary addr on node 2022-04-25 13:10:54 -04:00
0xdcarns 8e976d1f55 removed isdualstack references 2022-04-25 13:09:23 -04:00
0xdcarns 611a425852 added more uniform unique address checks 2022-04-25 13:08:45 -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
0xdcarns 773ad9b753 added initial notification to clients on server startup 2022-04-25 11:12:49 -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 6aa1a68a6f register command - client 2022-04-13 15:25:35 -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
Matthew R. Kasun c16687be61 keepalive handling updates 2022-03-21 07:07:50 -04:00
0xdcarns 5ba79afeba added default acl value option for networks 2022-03-17 13:24:57 -04:00
Matthew R. Kasun 0abba58bfb use string rather than []byte for dns 2022-03-14 14:59:41 -04:00
0xdcarns 01484eec7b added ability to disable ext clients 2022-03-11 09:41:14 -05:00
John Sahhar 0cfa197500 models/extclient: Add Address6 to ExtClient
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-08 16:08:56 -06:00
dcarns e1cb3531e1
Merge pull request #854 from gravitl/feature_0.12.0_host_dns
host dns
2022-03-07 08:58:19 -05:00
0xdcarns e5ebe48e0b set ishub default was missing 2022-03-02 15:08:23 -05:00
Matthew R. Kasun d596ec4753 hostctl for dns 2022-03-02 06:28:53 -05:00
afeiszli f21dad5184 fixed hub logic 2022-02-21 09:45:42 -05:00
0xdcarns 6028e1b6de added comms checks 2022-02-18 19:37:12 -05:00
0xdcarns d87b7002d5 added comms id field to nodes 2022-02-18 16:12:40 -05:00
afeiszli c6a7238453 adding random comms network name logic 2022-02-18 15:18:50 -05:00
afeiszli f55eeedbb9 settings for comms network 2022-02-18 11:11:21 -05:00
afeiszli be1763bb74 removing old node logic 2022-02-18 10:15:21 -05:00
afeiszli 8cd19c20c6 removed unnecessary variables from network, added IsHubAndSpoke 2022-02-18 09:49:58 -05:00
Matthew R. Kasun e8a897f342 checkin logic updated 2022-02-15 15:40:38 -05:00
Matthew R. Kasun 7e9f65ad1b remove corednsAddrr from token 2022-02-15 11:25:50 -05:00
Matthew R. Kasun 5e3654faa9 remove commented out code 2022-02-15 08:10:51 -05:00
Matthew R. Kasun 950ce4b4da removed APIConnString from accessToken 2022-02-15 07:13:02 -05:00
Matthew R. Kasun f3c5800912 removed unnecessary data elements 2022-02-14 17:57:28 -05:00
afeiszli 9400209d97 adding OS and Version 2022-02-03 15:33:19 -05:00
afeiszli 239b9d36fc change queue identifier from server.ID to Network.NetID 2022-02-03 09:51:37 -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
0xdcarns ad79f2ea1f addresses review comments 2022-01-29 18:18:46 -05:00
0xdcarns 410efbab50 switched to eliptical strategy 2022-01-29 18:18:46 -05:00
0xdcarns 2d703dce7c refactored continue 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 48d6d57f25 trying again 2022-01-29 18:18:46 -05:00
0xdcarns 7be2b0e09d adjusted to byte buffer 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 0d3813295d server update 2022-01-29 18:15:52 -05:00
0xdcarns 26a0d8bdbe initial commit 2022-01-29 18:15:52 -05:00
Matthew R Kasun 513f85ede7 refactor server pings 2022-01-27 09:48:32 -05:00
0xdcarns 27b29baf32 added new struct and adapted to funcs 2022-01-26 10:40:39 -05:00
0xdcarns 424c801c6c server update 2022-01-25 23:04:03 -05:00
0xdcarns d6554ef081 initial commit 2022-01-25 22:14:31 -05:00
Matthew R Kasun c239ee3787 Merge branch 'develop' into feature-messageQueue 2022-01-24 06:21:21 -05:00
afeiszli 2f12ded906 adding telemetry 2022-01-20 17:52:49 -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
0xdcarns 7700a68d5b Cover a legacy case, allow server to run with uuids 2022-01-20 13:00:04 -05:00
0xdcarns df23b50165 refactored more 2022-01-20 12:59:31 -05:00
0xdcarns de4e317aea began transition 2022-01-20 12:56:34 -05:00
Matthew R Kasun a86b9bd380 moved peer determination to server 2022-01-20 12:52:49 -05:00
Matthew R Kasun aa6f7a138b WIP commit to enable rebasing to uuid feature 2022-01-20 12:52:49 -05:00
Matthew R Kasun 496187985e WIP commit 2022-01-20 12:52:49 -05:00
Matthew R Kasun 90b468f9f9 WIP commit to enable rebasing to uuid feature 2022-01-20 12:52:49 -05:00
Matthew R Kasun 3e016ef8b5 WIP commit 2022-01-20 12:50:00 -05:00
Matthew R Kasun 6dff650b08 subscribed message handlers implemented 2022-01-20 12:50:00 -05:00
0xdcarns cbe54ef2cf test 2022-01-18 10:14:27 -05:00
0xdcarns a5495300d0 added logs 2022-01-18 09:06:43 -05:00
0xdcarns 2a5405982e began server client reactive 2022-01-17 18:35:16 -05:00
0xdcarns 2fe8025afa Cover a legacy case, allow server to run with uuids 2022-01-17 14:22:39 -05:00
0xdcarns 545f45d86d refactored more 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 548997f9ef optimize further 2021-12-10 21:09:42 -05:00
0xdcarns 85e8c0abb6 memory issue work 2021-12-08 16:52:32 -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
Alex d30877e131
Merge pull request #361 from pete1019/patch-2
Update README.md
2021-10-26 16:22:45 -04:00
0xdcarns 8f72ecbaa0 refactored logic 2021-10-26 12:50:34 -04:00
Adrien Raffin-Caboisse 51a09167fc feat(netclient): add listing of nodes with hostnames 2021-10-15 15:02:32 +02:00
Adrien Raffin-Caboisse b044dd404b feat(models): increase node name length
Custom server name can have more than 12 chars.
2021-10-13 09:37:23 +02: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
afeiszli 21ba362eca allowing IsServer to be modified, configurable checkin time, single checkin for linux, moved cfg files 2021-10-02 12:28:17 -04:00
0xdcarns 90cbbfdf4a minor cleanups 2021-09-28 14:08:16 -04:00
0xdcarns 90d941854b made some more efficient images and added set defaults for node reads 2021-09-27 17:51:20 -04:00
afeiszli 3ea101ba5d updating install docs 2021-09-23 00:12:32 -04:00
0xdcarns 0b645a4417 edited non kernel message, fixed comment 2021-09-21 20:32:09 -04:00
afeiszli b828f7b6d9 fixing model 2021-09-18 11:01:34 -04:00
afeiszli 74b15a6a13 fixing relay model 2021-09-18 10:33:14 -04:00
afeiszli 61c2c5f0a0 relay functionality working 2021-09-16 20:00:40 -04:00
afeiszli cacab5c30b fixing donotpropagate 2021-09-14 09:42:31 -04:00
afeiszli cf26b31779 relay server functionality ready to test 2021-09-13 20:25:27 -04:00
0xdcarns 34717417ce began windows userspace implementation 2021-09-10 13:39:51 -04:00
Matthew R Kasun 49f6a6f308 fixed network tests 2021-09-06 15:30:39 -04:00
worker-9 c2a9007b8c automated ext client egress range addition and ext client dns from network 2021-08-25 09:46:45 -04:00
afeiszli 8056f024e2 client mode enablement 2021-08-19 13:41:04 -04:00
afeiszli 1eb9decb15 fixing default dns settings 2021-08-11 12:19:28 -04:00
worker-9 47fe905438 added dualstack default from parent net 2021-08-10 13:32:35 -04:00
worker-9 9b37940c1a changed stuff to make it work 2021-08-10 12:15:30 -04:00
afeiszli b38a3688a8 removing vulnerability 2021-08-09 17:59:54 -04:00
afeiszli e333d04e72 removing vulnerability 2021-08-09 17:57:40 -04:00
worker-9 31e81342fb user security bug fixed 2021-08-09 16:18:24 -04:00
worker-9 4f9ce3635a fixed name issue 2021-08-09 15:08:53 -04:00
worker-9 ba4a177bfd added logo and updated version 2021-08-09 14:56:27 -04:00
afeiszli f496beac4e static configs 2021-08-09 14:28:43 -04:00
afeiszli aae89cbaca static configs 2021-08-09 14:13:19 -04:00
afeiszli 382901b124 changed logs 2021-08-09 12:43:09 -04:00
worker-9 1c521934ba added node names 2021-08-09 10:58:09 -04:00
worker-9 7ec18afbbe node update bug 2021-08-06 17:35:31 -04:00
worker-9 095ff2fbfc added egress as pull change 2021-08-06 13:47:39 -04:00
worker-9 94cf8bfbc6 added egress action 2021-08-06 13:39:14 -04:00
worker-9 09a35eabd0 fixed roaming and ip forwarding default 2021-08-06 12:32:41 -04:00
worker-9 5d4d3fd6d1 moved something 2021-08-05 23:34:40 -04:00
worker-9 68a3109cae bug squashin 2021-08-05 16:46:23 -04:00
worker-9 102aff9fd4 bug squashin 2021-08-05 13:47:05 -04:00
worker-9 f5c4258a55 Fixed node defaults 2021-08-05 12:55:20 -04:00
worker-9 0b2a830e4d Fixed unique db checks 2021-08-05 12:52:50 -04:00
worker-9 e029979ab6 I push 2021-08-05 12:39:01 -04:00
worker-9 44d03f6805 began refactoring of client 2021-08-05 12:24:16 -04:00
worker-9 fb5f08be5a Fixed client and server issues with updates and dns before db connect 2021-07-28 16:08:50 -04:00
afeiszli 12c4fa33f5 v0.7 2021-07-28 02:23:20 +00:00
afeiszli 60ef0e80b7 fixed egress gateway 2021-07-27 17:32:07 +00:00
afeiszli 4710a3db6d updated netclient for egressgatways 2021-07-27 14:48:58 +00:00
afeiszli 037271f0aa removing pubkey update 2021-07-26 17:57:50 +00:00
afeiszli b35cac8c5e added ifs to update 2021-07-26 12:24:36 -04:00
afeiszli f1cac641dc rando logs 2021-07-25 20:42:07 +00:00
afeiszli 9fb01f9620 updating netclient 2021-07-25 20:05:31 +00:00
afeiszli fd223e3d4a refactored nodes model 2021-07-24 16:13:24 -04:00
afeiszli a982b62445 refactoring validation and models 2021-07-23 18:24:34 -04:00
afeiszli 93b0b94788 Mid way through adopting rqlite 2021-07-21 18:55:19 -04:00
afeiszli c360eb1878 fixing merge problems 2021-07-15 15:17:33 -04:00
afeiszli 68607ae8ca fixing netclient 2021-07-15 15:14:48 -04:00
afeiszli d41207172c Added logging and user specific requests 2021-07-14 16:47:05 -04:00
afeiszli b33f5b2fab fixing validation 2021-07-11 10:28:50 -04:00
afeiszli 9860082b7c token configs and secure grpc working 2021-07-11 10:18:31 -04:00
afeiszli 977da6b129 compiling with changes pushed for json token. Have NOT TESTED. Will probably run into issues. Need to test multiple egress ranges, AllowedIPs, and overriding connection strings. 2021-07-11 00:49:31 -04:00
afeiszli e11a15dfff figured out how to get GRPC working 2021-07-10 20:11:19 -04:00
afeiszli ccce74be97 added setting node limits 2021-07-02 23:25:36 -04:00
afeiszli 041b641e17 multitenancy working 2021-07-02 00:03:46 -04:00
afeiszli e732d180fd fixing server 2021-06-02 02:32:20 +00:00
afeiszli be0d274ca6 making changes to grpc comms vars 2021-06-01 18:40:04 -04:00
afeiszli 1c6b8f8a2b add port to token 2021-06-01 19:28:01 +00:00
afeiszli 9813fd24a3 fixed server config api 2021-06-01 15:14:34 +00:00
Alex a8dc388640
Merge branch 'develop' into feature_v0.5_netclient 2021-05-29 15:15:27 -04:00
afeiszli afa4f1e8bb netclient grpc registration working 2021-05-29 15:12:15 -04:00
root d566d010ae got grpc private comms working 2021-05-29 19:06:35 +00:00
afeiszli 6c13f06001 feature_v0.5_netclient 2021-05-29 13:22:18 -04:00
afeiszli 4e758d67aa tests working locally 2021-05-28 10:04:07 -04:00
afeiszli 8e9a0b46aa test changes 2021-05-27 17:21:28 -04:00
root 884037e228 ingress gateway functional 2021-05-27 18:54:24 +00:00
afeiszli aaf184fabd set ingress gateway endpoint 2021-05-25 18:05:21 -04:00
afeiszli 85af4dd85f set ingress gateway endpoint 2021-05-25 18:05:14 -04:00
afeiszli 5db62d22d7 changing returnNode pointers 2021-05-25 16:40:44 -04:00
afeiszli b930027a95 modify access key 2021-05-25 16:09:49 -04:00
afeiszli 78ae219b03 major overhaul initiated 2021-05-25 12:48:04 -04:00
afeiszli 19c22a049e removing alphanum quailfier 2021-05-19 20:18:44 -04:00
afeiszli 29e332edf7 adding extclient functionality 2021-05-19 13:59:10 -04:00
afeiszli 5662a1538e saving progress. Got structs together, made a new controller (backup) and got the api calls created 2021-05-16 09:49:01 -04:00
Matthew R Kasun 073be947c6 Merge branch 'develop' into refactor-controllers 2021-05-09 10:52:42 -04:00
Matthew R Kasun b4490d5a95 remainder of controller common tests 2021-05-09 08:51:49 -04:00
Matthew R Kasun 99474f0d66 refactor node update validation 2021-05-06 16:14:31 -04:00