Commit graph

63 commits

Author SHA1 Message Date
Max Ma
6dc881260f
NET-1224:add egressGW ip for setroutes (#2933)
* add egressGW ip for setroutes

* fix peer endpoint selection

---------

Co-authored-by: abhishek9686 <abhi281342@gmail.com>
2024-05-14 19:56:24 +05:30
Max Ma
7de252f996
add ipv6 address/network for egress (#2906) 2024-04-30 09:57:17 +05:30
Abhishek K
8b08ad1463
NET-1146: add node ipv6 addr to egress route (#2896)
* add node ipv6 addr to egress route

* fix egress route ipv6 address issue

* revert ipv6 peer addr change

---------

Co-authored-by: Max Ma <mayabin@gmail.com>
2024-04-16 19:22:14 +05:30
Abhishek K
dccb6b5da7
NET-1075: Endpoint detection server config (#2876)
* add config for endpoint detection

* add config to netmaker env file

* fix config value check for endpoint detection
2024-04-03 23:51:09 +05:30
Abhishek K
0638dcac49
NET-940: Inet Gws (#2828)
* internet gws apis

* add validate check for inet request

* add default gw changes to peer update

* update json tag

* add OS checks for inet gws

* add set defaul gw pro func

* allow disable and enable inet gw

* add inet handlers to pro

* add fields to api node

* add inet allowed ips

* add default gw to pull

* unset node inet details on deletion

* unset internet gw on network nodes

* unset inet gw fix

* unset inet gw fix

* send default gw ip

* fix inet node endpoint

* add default gw endpoint ip to pull resp

* validate after unset gws

* add inet client peer allowedips to inet node

* validate after unset gws

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix allowed ips for inet peer and gw node

* fix inet gw and relayed conflict

* fix inet gw and relayed conflict

* fix update req

* fix update inet gw api

* when inet gw is peer ignore other allowedIps

* test relay

* revert test relay

* revert inet peer update changes

* channel internet traffic of relayed node to relay's inetgw

* channel internet traffic of relayed node to relay's inetgw

* channel internet traffic of relayed node to relay's inetgw

* add check for relayed node

* add inet info to peer update

* add inet info to peer update

* fix update node to persist inet info

* fix go tests

* egress ranges with inet gw fix

* egress ranges with inet gw fix

* disallow node acting using inet gw to act as inet gw

* add check to validate inet gw

* fix typos

* add firewall check

* set inetgw on ingress req on community

* set inetgw to false on community on ingress del
2024-02-28 08:46:51 +07:00
Abhishek K
5bf30b2c10
NET-877: Replace peers on Refreshkeys peer update (#2761)
* replace peers on key refresh

* add peer conf to metrics map only when allowed
2024-01-11 15:59:19 +05:30
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