Commit Graph

1815 Commits

Author SHA1 Message Date
Maycon Santos
24b3f2d608 fix benchmark 2024-12-17 13:46:11 +01:00
Maycon Santos
ddc020d34f Set -p 1 for management tests
We still have some client tests that can lock other tests within the management code

for now, I am adding back the -p 1 flag
2024-12-17 13:34:51 +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
bcmmbaga
21586acc16
Add network routers in account object
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 14:59:55 +01:00
bcmmbaga
f9be8f829e
Add networks store implementation and tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 11:21:14 +01:00
bcmmbaga
6a1eda1caa
Add account networks
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-10 11:20:48 +01:00
bcmmbaga
21eca7e1d1
Merge branch 'feature/new-networks-concept' into add-networks-db-support 2024-12-10 10:59:28 +01:00
Pascal Fischer
0812cc61b9
[management] Add name attr to network resource (#3011) 2024-12-10 10:51:18 +01:00
bcmmbaga
eb5798e927
Migrate networks, network routers and network resource tables
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-09 19:42:38 +01:00
Pascal Fischer
623fcb0535
[management] Add structs for new networks concept (#3006) 2024-12-09 19:25:58 +01:00
Bethuel Mmbaga
97bb74f824
Remove peer login log (#3005)
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-09 18:40:06 +01:00
Maycon Santos
2147bf75eb
[client] Add peer conn init limit (#3001)
Limit the peer connection initialization to 200 peers at the same time
2024-12-09 17:10:31 +01:00
Pascal Fischer
e40a29ba17
[client] Add support for state manager on iOS (#2996) 2024-12-06 16:51:42 +01:00