Commit graph

399 commits

Author SHA1 Message Date
0xdcarns f1f164cf35 fix host ID return for API 2023-01-03 14:17:36 -05:00
Abhishek Kondur 8a9241d5e2 fix keepalive conversion type 2022-12-30 11:43:48 +05:30
Abhishek Kondur f9bfed9773 add local address field to host model 2022-12-28 09:10:44 +05:30
Abhishek Kondur 7cd11e4d86 proxy named pkg reference 2022-12-28 08:03:35 +05:30
Abhishek Kondur 2cb3ee65af change proxy models reference paths 2022-12-27 21:56:55 +05:30
Matthew R Kasun a371b7ae21
Merge branch 'netclient_refactor_latest' into GRA-824-getPeerUpdate 2022-12-23 15:59:55 -05:00
0xdcarns 368d01ff10 removed localaddress 2022-12-23 14:06:39 -05:00
Matthew R. Kasun eae92470c5 refactor of peerUpdate
contains some debugging logging
2022-12-23 13:41:17 -05:00
0xdcarns 6669f38961 add isdefault to models 2022-12-22 13:39:29 -05:00
0xdcarns c257827807 merge conflicts 2022-12-22 09:22:55 -05:00
Matthew R. Kasun bce2f8a45c fix compile errors 2022-12-22 06:42:33 -05:00
0xdcarns e0d3d17921 created conversion functions for hosts 2022-12-21 16:42:24 -05:00
0xdcarns 8f8335aa4f finished model conversion 2022-12-21 14:06:33 -05:00
0xdcarns e92f524fbe finished convert api to nm node 2022-12-21 11:56:29 -05:00
Aceix d1c51aed24 tech(GRA-823): address comments 2022-12-21 10:17:20 -05:00
Aceix dcad50d0ee tech(GRA-823): add node DTO 2022-12-21 10:17:20 -05:00
Matthew R. Kasun 716dc3def5 update validations for boolean attributes 2022-12-21 06:29:05 -05:00
Matthew R. Kasun 0272e88c0f fix panic joining non-dual stack network 2022-12-21 05:58:52 -05:00
Matthew R. Kasun 770a293049 new constant for wireguard interface name 2022-12-21 03:31:37 -05:00
Matthew R. Kasun 38cd4d7700 refactor join
also removes server node
suspect there may be issues with proxy
and UI interactions with nodes
2022-12-20 15:29:09 -05:00
Matthew R. Kasun c086e9499d rebase
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-12-19 15:15:35 -05:00
0xdcarns cc529ab3bd finished initial crud for hosts, fixed stun server close bug 2022-12-19 14:55:24 -05:00
Matthew R. Kasun 4f303dd4c5 add comment for public type 2022-12-19 11:03:14 -05:00
Matthew R. Kasun dd80fd6ab4 new host model 2022-12-19 10:41:55 -05:00
Matthew R Kasun 55f7a0eb02
Merge pull request #1828 from gravitl/story/GRA-752
fix(GRA-752f): add address string to be sent to frontend
2022-12-16 07:42:07 -05:00
Aceix 457060d41a fix(GRA-752f): add address string to be sent to frontend 2022-12-14 11:39:33 +00:00
Abhishek Kondur 759b9bc6cd rm ext cidr 2022-12-13 01:14:28 +05:30
Abhishek Kondur 07dd20734d extclients internal ips 2022-12-12 22:49:35 +05:30
Abhishek Kondur 8fc09fd5cd fix stun port format,use proxy listen port from node model 2022-12-12 10:33:35 +05:30
Abhishek Kondur 0b8257f0d7 fix models change, merge conflicts resolved 2022-12-12 08:50:28 +05:30
Matthew R. Kasun 99cf813753 fix yaml tag for HostID 2022-12-09 13:25:24 -05:00
Abhishek Kondur e00199a650 update proxy pkg path 2022-12-09 00:54:11 +05:30
Abhishek Kondur 1dab5ed004 update proxy pkg path 2022-12-09 00:48:47 +05:30
Abhishek Kondur 449a1e25a8 resolve conflicts 2022-12-09 00:05:07 +05:30
Abhishek Kondur 79aa9893dc change stun port to int type 2022-12-08 21:45:32 +05:30
Abhishek Kondur d8075e69c6 add alias internal ip to ext clients 2022-12-08 19:48:47 +05:30
Abhishek Kondur 7f5e1a141f store proxy metrics in the server 2022-12-08 14:20:50 +05:30
Abhishek Kondur 695e3b1661 merge conflicts resolved 2022-12-08 09:28:41 +05:30
Abhishek Kondur 80c7d46ec6 docker compose update, add stun to caddyfile 2022-12-06 19:27:38 +05:30
Abhishek Kondur 4b1a85a3ee proxy changes 2022-12-02 17:35:41 +05:30
Abhishek Kondur 5b7ead91e6 merge conflicts resolved 2022-12-02 10:08:01 +05:30
Matthew R. Kasun c5919b347c local interfaces 2022-11-28 12:58:24 -05:00
Matthew R. Kasun 5e4e512890 review comments 2022-11-28 12:40:52 -05:00
Matthew R. Kasun 6b18ff57c9 add all local interfaces to node 2022-11-28 11:16:19 -05:00
Abhishek Kondur f95306ddbd make proxy optional 2022-11-20 09:35:29 +05:30
Matthew R. Kasun 4df672de68 refactor node deletion 2022-11-15 09:52:17 -05:00
Abhishek Kondur a7c0abe2fc refactor proxy updates 2022-11-07 01:25:04 +05:30
Abhishek Kondur acae6c3aed added relay functionality to proxy 2022-11-04 01:24:48 +05:30
Matthew R. Kasun b3f90f2929 add hostid and separate server name/broker name 2022-11-02 11:22:40 -04:00
Abhishek Kondur 1b92cb2442 add stun to servercfg 2022-10-26 10:53:57 +05:30
0xdcarns 75fc15ac4c commented out logic 2022-09-28 13:05:41 -04:00
afeiszli 29ce2fa57a refactor failover logic to set per-peer. Uses Ingress Gateway logic instead of Relay logic 2022-09-27 13:59:49 -04:00
afeiszli 6dcd801941 changing default failover value 2022-09-27 10:30:01 -04:00
0xdcarns d565dbeaf8 initial logic for failover 2022-09-27 10:30:01 -04:00
Matthew R. Kasun d54fb0823e ee check 2022-09-22 12:59:59 -04:00
afeiszli 4157ddb73a fix staticcheck 2022-09-19 13:27:30 -04:00
afeiszli 255e400be8 set NetworkUser defaults 2022-09-14 15:08:38 -04:00
afeiszli 96772bb4bd network and ACL initialization 2022-09-13 15:41:23 -04:00
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
Matthew R. Kasun 8eb568e25a remove model validation for node.LocalAddress 2022-09-12 15:38:01 -04:00
Alex Feiszli 5d27db6e22
Merge pull request #1536 from gravitl/feature_v0.15.2_connect_status
send connected status on checkin
2022-09-12 11:51:55 -04:00
Abhishek Kondur 91cc77ee5b added comments 2022-09-12 18:11:21 +05:30
Abhishek Kondur 8cbe796748 add servers to telemetry data 2022-09-12 18:06:17 +05:30
Matthew R. Kasun 84e58d0d5a send connected status on checkin 2022-09-08 06:19:10 -04:00
Alex Feiszli 3ead2b5469
Merge pull request #1509 from gravitl/feature_v0.15.1_ipv6_egress
IPv6 support for gateways
2022-09-06 17:03:26 -04:00
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