Commit graph

492 commits

Author SHA1 Message Date
Aceix
596cc7a945
feat(NET-449): add sync feature to request a host pull from server (#2491) 2023-08-04 13:22:47 +05:30
Aceix
91859c2490
prune(NET-483): remove defunct host.internetgateway field (#2487) 2023-08-02 17:26:44 +05:30
Aceix
a7914b1631
fix(NET-388): fix to update node dns toggle (#2472) 2023-07-28 21:28:36 +05:30
Abhishek K
cf11169553
NET-433: Only Set Routes for NAT enabled egress GW (#2469)
* remove related fields and code

* remover metrics collection from server code

* fw update struct

* add ext client flag to metrics data

* simply nat types

* rm proxy update from cli

* remove ingress routes from firewall update

* check if egress ranges are present

* rm unused func
2023-07-28 19:44:51 +05:30
Abhishek K
ab73278597
add timestamp to turn signal (#2470) 2023-07-28 09:20:43 +05:30
Abhishek K
645bc4c126
NET-447: Removed proxy related fields and code (#2459)
* remove related fields and code

* remover metrics collection from server code

* fw update struct

* add ext client flag to metrics data

* simply nat types

* rm proxy update from cli
2023-07-26 11:22:49 +05:30
Aceix
f4a5520f86
Kwesi/net 326 bug client ac ls (#2462)
* feat(NET-326): return 200 [] instead of 500 when there are not network acls

* fix(NET-326): implement allow/deny client acl functions

* fix(NET-326): implement extclient acl update

* fix(NET-326): kame fixes, send peer updates
2023-07-26 10:32:54 +05:30
Abhishek K
e6c6ec3b45
add egress routes info to peer update (#2452) 2023-07-14 18:49:52 +05:30
Abhishek Kondur
b64cef3447 fix merge conflicts 2023-06-28 22:12:30 +05:30
Abhishek K
38454ece79
IOT-66: Single Peer update for IOT client (#2424)
* send peer update to IOT client only when it is relayed

* move node check

* send relay del update for iot client

* fix relay delete logic for iot

* set relay node to true for iot peer update

* add node addrs to peer update

* revert tag
2023-06-28 22:08:49 +05:30
Abhishek K
230e062c84
GRA-1298: License check changes, free tier limits for saas (#2418)
* set free tier limits through config

* add host limit to config

* check for host limit on free tier

* fix license validation, replace node limit with hosts

* add hosts to telemetry data

* debug init

* validate license every 1hr

* hook manager, api to fetch server usage

* hook manager, server usage api

* encode json server usage api

* update ngork url

* update license validation endpoint

* avoid setting limits on eer

* adding hotfix

* correct users limits env var

* add comments to exported funcs

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-28 20:33:06 +05:30
Aceix
84617359fa
fix(NET-379): send host NAT type over api (#2423) 2023-06-28 20:23:11 +05:30
Abhishek Kondur
243cc74490 remove endpoint detection from host model 2023-06-27 22:36:24 +05:30
Abhishek K
6c2582651c
Net-137: Node relays (#2401)
* revert relays

* initial relay commit

* get relayed allowed ips

* add more relay validation checks, peer logic cleanup

* rm relayed nodes from relay node when relayed node is deleted

* fix egress updates for relayed nodes

* rm unused func

* remove  debug logs

* avoid adding egress ranges on the relayed gw node

---------

Co-authored-by: Matthew R Kasun <mkasun@nusak.ca>
2023-06-19 12:26:14 -04:00
Tobias Cudnik
94ca72e370
NET-173 Sync EndpointDetection config (#2374)
* adding serverconfig logic and variable to hosts

* - sync EndpointDetection on peerupdate
- add EndpointDetection to env config

* - endpoint detection always comes from the server
- fixed ENDPOINT_DETECTION -> NETCLIENT_ENDPOINT_DETECTION

---------

Co-authored-by: afeiszli <alex.feiszli@gmail.com>
2023-06-13 16:33:53 -04:00
Abhishek K
78e26c4673
add nodes to pull response (#2371) 2023-06-06 22:16:21 -04:00
Abhishek K
47edf65b1f
NET-186: Wg public listen port (#2344)
* fetch public listen of wg if present

* check if wg pub listen port has been changed on host update

* wg public port to host api model for visibility

* rm comment
2023-05-31 08:21:02 +05:30
Matthew R Kasun
78640f1342
Extclient NET-63x (#2286)
* model changes

* additional fields for extclient create

* add DNS to extclient config

* extclient name checks

* update extclient

* nmctl extclient

* final tweaks

* review comments

* add extclientdns to node on ingress creation

* fix to add ingress dns to api (#2296)

---------

Co-authored-by: Aceix <aceixsmartX@gmail.com>
2023-05-17 10:58:03 -04:00
Abhishek K
46acf1d336
NET-129: Turn Signal Actions (#2290)
* add signal action field

* add negotiation signal action

* typo fix

* change signal action name
2023-05-15 15:40:34 -04:00
Matthew R Kasun
13473f4dd7 review comments 2023-05-08 13:44:32 -04:00
Matthew R Kasun
3ccd81eac8 add type to APIEnrollementKey 2023-05-08 06:30:55 -04:00
Matthew R Kasun
3567811aab add type to enrollement key 2023-05-05 11:03:59 -04:00
Abhishek Kondur
423abf0fe4 add use_turn option to config,check if server is using turn 2023-04-28 14:06:28 +05:30
Abhishek Kondur
9b87a6b722 remove unused fields 2023-04-26 17:03:25 +04:00
Abhishek Kondur
9e0038f39c merge conflicts resolved 2023-04-25 11:12:22 +04:00
Matthew R Kasun
754ab44a48 Merge remote-tracking branch 'origin/develop' into GRA-1529-key-update 2023-04-19 09:48:04 -04:00
dcarns
3d82df3bc6
Merge pull request #2133 from gravitl/refactor_auto_update
Add host level auto update setting with default true
2023-04-19 09:40:56 -04:00
Abhishek Kondur
23e3c1ce29 remove unused field 2023-04-19 13:24:36 +04:00
Abhishek Kondur
3d6005b649 remove unused field on peer conf 2023-04-19 13:24:06 +04:00
Abhishek Kondur
433b61417b merge conflicts resolved 2023-04-19 13:23:06 +04:00
Abhishek Kondur
aaa2211939 add server field to signal struct 2023-04-19 07:05:17 +04:00
0xdcarns
18c9bcc58f adapted sso to host registration 2023-04-17 22:23:17 -04:00
Abhishek Kondur
a8e234efc9 avoid sending turn domain to client 2023-04-17 11:44:17 +04:00
Abhishek Kondur
d4ceabd4b3 register host through server, add basic auth to turn apis 2023-04-17 11:21:28 +04:00
Matthew R Kasun
63552891ee refactor key updates on host basis vice node 2023-04-13 15:02:14 -04:00
Abhishek Kondur
1324b6443d add reply field to signal struct 2023-04-13 10:00:09 +04:00
Abhishek Kondur
726531af25 change relayendpoint type to str 2023-04-11 09:46:51 +04:00
Abhishek Kondur
4d223c1cdc api for signalling peer 2023-04-10 12:14:40 +04:00
Abhishek Kondur
559880f11d add nat type to peer conf 2023-04-10 11:20:51 +04:00
Abhishek Kondur
5153c471d8 add turn port to server config 2023-04-06 11:30:53 +04:00
Abhishek Kondur
f54ae9ae8f turnserver registration apis 2023-04-06 08:50:34 +04:00
Abhishek Kondur
b8904d1f3c Merge branch 'develop' of https://github.com/gravitl/netmaker into GRA-1494 2023-04-04 18:32:55 +04:00
Abhishek Kondur
5e8e56b56e merge conflicts resolved 2023-04-03 22:43:33 +04:00
0xdcarns
2da7d7242f remove debug items 2023-03-30 17:33:55 -04:00
0xdcarns
8f2c38b118 Merge branch 'develop' into GRA-1401/host-nattype 2023-03-30 17:27:09 -04:00
0xdcarns
fa40a5929d added turn ep + nat type to host model 2023-03-30 17:23:21 -04:00
0xdcarns
63eac1e79c added host pull model, made API 2023-03-22 15:36:53 -04:00
Abhishek Kondur
851fdbfee1 add turn config to host model 2023-03-22 12:05:51 +04:00
Abhishek Kondur
91b4d237c8 add turn config to server config 2023-03-22 11:09:50 +04:00
Abhishek Kondur
cafdfa70c1 turn server poc 2023-03-22 11:00:03 +04:00