Commit graph

57 commits

Author SHA1 Message Date
Abhishek K b78cc0a8a1
NET-725: Failovers (#2685)
* api to  to get host relayed from client

* add auto relay to api host

* add peer nat type

* set pro field on signal

* rm net check on relay me handler

* return success response

* re-establish failover logic

* set failOver ctx

* failOver with peer pub key

* failovered peer updates

* failover handlers, reset failovered peer on deletion

* rm unused funcs

* initialize failover handler on EE

* ignore failover node on signal

* failover changes

* set host id on signal

* extend signal model to include node ids

* add backwards compatibility

* add failover as node api

* set json response on failover handers

* add failover field to api node

* fix signal data check

* initialize failover peer map

* reset failovered status when relayed or deleted

* add failover info to api node

* reset network failover

* only proceed furtuer if failover exists in the network

* set failOver node defaults

* cannot set failover node as relayed

* debug log

* debug log

* debug changes

* debug changes

* debug changes

* revert debug changes

* don't add peers to idmap when removed

* reset failed Over

* fix static checks

* rm debug log

* add check for linux host
2023-11-29 20:10:07 +04:00
Abhishek K 916694b2cf
NET-664: Local Connections improvements (#2651)
* deprecate endpoint detection form config

* add peer network info to pull
2023-11-01 20:37:43 +04:00
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 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
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 Kondur 243cc74490 remove endpoint detection from host model 2023-06-27 22:36:24 +05:30
0xdcarns ac6363dda6 adjust peer updates to send ifaces with peer 2023-03-16 11:54:29 -04:00
0xdcarns 0f3faceb93 added logic for ext client ACLs 2023-03-14 13:39:33 -04:00
0xdcarns a419b24151 added node peers to return 2023-02-21 13:14:06 -05:00
0xdcarns 95013fd49a removed old peer update style 2023-02-21 10:31:37 -05:00
Abhishek Kondur a117131bfd Merge branch 'develop' of https://github.com/gravitl/netmaker into GRA-1194/extclient_egress 2023-02-16 19:22:33 +04:00
Abhishek Kondur 4c373af9ec add egress ranges to ingress info 2023-02-13 20:09:21 +04:00
Matthew R Kasun 562df0ad0f fix rebase 2023-02-07 15:31:45 -05:00
Matthew R Kasun e424a5eea3 remove dns from peer update 2023-02-07 15:17:05 -05:00
Abhishek Kondur 7be2771ea8 comments for exported 2023-02-06 20:18:11 +04:00
Abhishek Kondur 4deaac5de1 add node network to ext. model 2023-02-04 14:02:33 +04:00
Abhishek Kondur 92922f17bd update network model 2023-02-04 10:13:16 +04:00
Abhishek Kondur 0505629fd1 egress model update,remove interface check 2023-02-04 09:54:56 +04:00
Abhishek Kondur f565d59af3 add egress gw addr to model 2023-02-02 21:33:50 +04:00
Abhishek Kondur b7d3c5b7bd add egress id to model 2023-02-02 21:25:12 +04:00
Abhishek Kondur 04ac036b68 add egress gw info to host update 2023-02-02 10:22:20 +04:00
Abhishek Kondur 3d48d005d6 resolve merge conflicts 2023-02-01 23:19:51 +04:00
Abhishek Kondur 5d2ff009bf comments 2023-02-01 16:48:41 +04:00
Abhishek Kondur 2ffd3cab72 add ingress GW address to route info 2023-02-01 13:40:15 +04:00
Abhishek Kondur 5e9798bb05 add peer keys 2023-02-01 10:28:11 +04:00
Abhishek Kondur be741c1b44 add json tags 2023-01-31 16:14:00 +04:00
Abhishek Kondur 62e7cc366e update ext client model 2023-01-31 13:33:15 +04:00
Abhishek Kondur 35c8fb3b41 addd server to host update model 2023-01-31 12:48:37 +04:00
Abhishek Kondur 36cf202ad5 extclient info model changes 2023-01-31 12:37:22 +04:00
Abhishek Kondur 841a61a0b2 get consolidated ingress update 2023-01-31 11:10:23 +04:00
Abhishek Kondur 56d26b5ea0 add ingress model to host peer update 2023-01-31 10:21:10 +04:00
Abhishek Kondur f2d8cf4fb6 add ext peers field to host update 2023-01-31 09:27:36 +04:00
Matthew R Kasun aad4abc181 remove dependencies on netclient 2023-01-27 14:51:06 -05:00
Abhishek Kondur d373e90597 enable proxy when host is relay and on relayed hosts, add relay related feilds to api host model 2023-01-09 23:03:23 +05:30
Abhishek Kondur 6bc3417caf comments for exported funcs 2023-01-06 18:18:25 +05:30
Abhishek Kondur 88902f7823 fix host peer update model,add server name to peer update topic 2023-01-04 11:03:13 +05:30
Abhishek Kondur d99526fd54 peer update for host 2023-01-04 10:04:17 +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
Abhishek Kondur 1dab5ed004 update proxy pkg path 2022-12-09 00:48:47 +05:30
Abhishek Kondur 4b1a85a3ee proxy changes 2022-12-02 17:35:41 +05:30
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
0xdcarns 88cd0a6497 initial commit 2022-09-13 15:25:56 -04:00
Matthew R. Kasun fef31752bd send server version in peer update message 2022-05-25 15:21:22 -04:00
Matthew R. Kasun 0abba58bfb use string rather than []byte for dns 2022-03-14 14:59:41 -04:00
Matthew R. Kasun d596ec4753 hostctl for dns 2022-03-02 06:28:53 -05:00
0xdcarns cd4e2c57d6 added new struct and adapted to funcs 2022-01-29 18:15:52 -05:00