Commit Graph

1825 Commits

Author SHA1 Message Date
bcmmbaga
7ba6634e31
fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 18:39:32 +03:00
Maycon Santos
400a138c76 wip: add missing routers 2024-12-18 16:31:01 +01:00
bcmmbaga
57eac8824f
wip: generate routes for resource with no policy
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 17:37:38 +03:00
bcmmbaga
dfa453abe7
convert resource to route if resource has policy
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 14:54:25 +03:00
bcmmbaga
be341db10a
Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen 2024-12-18 14:48:20 +03:00
Viktor Liu
49c32e240d
Fix dns forwarder update (#3068)
* Apply new domains correctly

* Update dns forwarder before routes

* Don't drag RegisterHandler call into lock

* Ignore empty domains
2024-12-18 12:10:25 +01:00
Pascal Fischer
3467670f44
[management] Include related policies into networks (#3070) 2024-12-18 11:54:46 +01:00
Pascal Fischer
e40eb91e54
[management] add activity events for networks (#3069) 2024-12-18 11:39:17 +01:00
Pascal Fischer
b53935065b
[management] properly add and remove resources from groups (#3067) 2024-12-18 10:44:08 +01:00
bcmmbaga
e8f7b7f23d
Refactor router peer validation
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-17 18:11:24 +03:00
Bethuel Mmbaga
bcf32f215c
[management] Generate network map for new network concept (#3044) 2024-12-17 14:07:20 +01:00
Pascal Fischer
cbd333a3e0
[management] Revert to using address field in api (#3064) 2024-12-17 13:35:50 +01:00
Viktor Liu
21ba6ad266
Improve dns forwarder errors and improve domain anonymization (#3052)
* Improve dns forwarder errors and improve domain anonymization


* Use original domain for dns states

* Don't match subdomains for non-wildcard dns routes

* Fix iOS

* Add string representation for local resolver

* Return correct handler for dynamic

* Add dns server dns route + upstream handler test
2024-12-17 12:57:07 +01:00
Pascal Fischer
228672aed2
[management] Parse resource addr before db write (#3061) 2024-12-17 12:21:28 +01:00
Pascal Fischer
712341e73d
[management] add update account peers hook (#3060) 2024-12-17 12:10:33 +01:00
Pascal Fischer
12ae7ff54e
[management] Remove resource from groups when resource deleted (#3059) 2024-12-17 11:32:53 +01:00
Pascal Fischer
ffe0a11d34
[management] Add tests for networks managers (#3049) 2024-12-17 10:43:51 +01:00
Pascal Fischer
4aa13c61dc Merge branch 'main' into feature/new-networks-concept 2024-12-16 21:27:11 +01:00
Maycon Santos
37ad370344
[client] Avoid using iota on mixed const block (#3057)
Used the values as resolved when the first iota value was the second const in the block.
2024-12-16 18:09:31 +01:00
VYSE V.E.O
703647da1e
fix client unsupported h2 protocol when only 443 activated (#3009)
When I remove 80 http port in Caddyfile, netbird client cannot connect server:443. Logs show error below:
{"level":"debug","ts":1733809631.4012625,"logger":"http.stdlib","msg":"http: TLS handshake error from redacted:41580: tls: client requested unsupported application protocols ([h2])"}
I wonder here h2 protocol is absent.
2024-12-16 14:17:46 +01:00
Maycon Santos
9eff58ae62
Upgrade x/crypto package (#3055)
Mitigates the CVE-2024-45337
2024-12-16 10:30:41 +01:00
Jesse R Codling
3844516aa7
[client] fix: reformat IPv6 ICE addresses when punching (#3050)
Should fix #2327 and #2606 by checking for IPv6 addresses from ICE
2024-12-16 09:58:54 +01:00
M. Essam
f591e47404
Handle DNF5 install script (#3026) 2024-12-16 09:41:36 +01:00
Viktor Liu
958650cd3d Merge branch 'main' into feature/new-networks-concept 2024-12-14 23:25:39 +01:00
Maycon Santos
287ae81195
[misc] split tests with management and rest (#3051)
optimize go cache for tests
2024-12-14 21:18:46 +01:00
M. Essam
a4a30744ad
Fix race condition with systray ready (#2993) 2024-12-14 12:17:53 -08:00
Zoltan Papp
2fa1433063
Use DNS route feature flag (#3048)
Co-authored-by: Viktor Liu <viktor@netbird.io>
2024-12-14 16:46:49 +01:00
Zoltan Papp
c91d7808bf
Add dns interceptor based domain route functionality (#3032) 2024-12-13 14:17:10 +01:00
Pascal Fischer
a145f0b811
[management] Add settings for routing peer dns resolution (#3040) 2024-12-13 14:08:19 +01:00
Pascal Fischer
e436c39a86
[management] Add routing peer counter (#3036) 2024-12-13 11:57:07 +01:00
Maycon Santos
86352f00fc
Rename GUI menu options and route selection with new network concept (#3035)
* rename route with network for new concept

* rename file
2024-12-12 13:51:32 +01:00
Pascal Fischer
6bd9352da8
[management] Allow resources in groups (#3030) 2024-12-12 13:22:50 +01:00
Maycon Santos
4db4494d0d
Rename CLI commands and status output with the new network concept. (#3029)
Rename CLI commands and status output with the new network concept.

Updated the daemon gRPC API and renamed files.
2024-12-12 12:53:52 +01:00
Pascal Fischer
d1d6875953
[management] Add managers to link networks API with store (#3022) 2024-12-12 11:51:44 +01:00
Bethuel Mmbaga
7944b8e843
Merge pull request #3025 from netbirdio/feature/add-policy-network-resources
[management] Extends policy with source and destination resources
2024-12-11 17:26:36 +01:00
Maycon Santos
dcba6a6b7e
fix: client/Dockerfile to reduce vulnerabilities (#3019)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-8235201

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-12-11 16:46:51 +01:00
bcmmbaga
9322a92ee9
Refactor the resource and add api helper functions
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 16:16:23 +01:00
bcmmbaga
e5a6f9e965
Fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 16:15:42 +01:00
bcmmbaga
bde334ecfc
Refactor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 14:37:36 +01:00
bcmmbaga
9fae103370
Extends policy rule API with source and destination resource
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 14:22:33 +01:00
bcmmbaga
ac06f178fe
Add policy rule source and destination resource
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 14:22:09 +01:00
Pascal Fischer
60ee31df3e
[management] Add API of new network concept (#3012) 2024-12-11 12:58:45 +01:00
Bethuel Mmbaga
9f859a240e
Merge pull request #3015 from netbirdio/add-networks-db-support
* Migrate networks, network routers and network resource tables

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add account networks

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add networks store implementation and tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add network routers in account object

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add network routers store implementation

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add network resources store implementation

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add missing network resource in account copy

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Refactor

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Fix tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

---------

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-11 10:58:49 +01:00
bcmmbaga
c7f79085df
Fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 17:26:23 +01:00
bcmmbaga
7146fd03d1
Refactor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 17:04:16 +01:00
bcmmbaga
a52ef1a066
Add missing network resource in account copy
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 16:49:32 +01:00
bcmmbaga
382dba4a85
Add network resources store implementation
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 16:42:11 +01:00
Pascal Fischer
3e621b0fef Merge branch 'main' into feature/new-networks-concept 2024-12-10 16:03:07 +01:00
Pascal Fischer
6142828a9c
[management] restructure api files (#3013) 2024-12-10 15:59:25 +01:00
bcmmbaga
6dd6992415
Add network routers store implementation
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 15:00:23 +01:00