Commit Graph

1839 Commits

Author SHA1 Message Date
Pascal Fischer
6061ac88e2 add tests for network map generation 2024-12-19 21:35:29 +01:00
Pascal Fischer
394c439716 fix router map generation 2024-12-19 19:27:03 +01:00
Pascal Fischer
b7fea2c9a0 fix routing peer lookup 2024-12-19 18:40:58 +01:00
Pascal Fischer
20a51472c9
[management] fix deadlock in networks concept (#3083) 2024-12-19 18:01:03 +01:00
Bethuel Mmbaga
2714433c8e
Merge pull request #3066 from netbirdio/refactor/new-concept-netmap-gen
[management] Refactor network map generation
2024-12-19 18:10:23 +03:00
bcmmbaga
eecf7633c1
Merge branch 'feature/new-networks-concept' into refactor/new-concept-netmap-gen 2024-12-19 17:40:12 +03:00
Viktor Liu
b71eb4c87f
Update domains on startup (#3079) 2024-12-19 15:31:34 +01:00
Maycon Santos
858bb8b136
Pass an account map of resource policies (#3078) 2024-12-19 14:13:01 +01:00
Pascal Fischer
e302ce97ac
[management] increase network serial on change of networks (#3077) 2024-12-18 20:37:45 +01:00
Pascal Fischer
d5e4d0ca24
[management] fix group resource events (#3075) 2024-12-18 19:18:19 +01:00
Maycon Santos
2b12560802 set -p 1 2024-12-18 18:36:55 +01:00
Maycon Santos
a1c0e54e83 using policy for network resource 2024-12-18 18:24:59 +01:00
bcmmbaga
9faf6720c6
Add tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 19:17:52 +03:00
bcmmbaga
a9360dce9b
Removed unused code and filter network resources HA routes
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-12-18 19:17:37 +03:00
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