Commit Graph
52 Commits
Author SHA1 Message Date
Viktor Liu 576b4a779c Log shell 2025-10-28 18:15:53 +01:00
Viktor Liu e6854dfd99 Improve session logging 2025-10-28 17:57:59 +01:00
Viktor Liu 34b55c600e Log errors on debug 2025-10-10 16:11:13 +02:00
Viktor Liu 316c0afa9a Remove unused arg 2025-10-10 11:08:34 +02:00
Viktor Liu 559f6aeeaf Improve logging 2025-10-08 18:54:56 +02:00
Viktor Liu 7216c201da Log priv check errors 2025-10-08 18:46:02 +02:00
Viktor Liu 4d89d0f115 Remove unused code 2025-10-08 18:39:41 +02:00
Viktor Liu f3d31698da Skip some auth tests on windows that are already covered 2025-10-07 23:39:01 +02:00
Viktor Liu d9efe4e944 Add ssh authenatication with jwt (#4550) 2025-10-07 23:38:27 +02:00
Viktor Liu b3c7b3c7b2 Fix js build 2025-10-02 15:59:17 +02:00
Viktor Liu 66483ab48d Merge branch 'main' into ssh-rewrite 2025-10-02 15:53:12 +02:00
Viktor Liu b5daec3b51 [client,signal,management] Add browser client support (#4415) 2025-10-01 20:10:11 +02:00
Viktor Liu 79d28b71ee Improve forwarding cancellation 2025-08-26 22:22:15 +02:00
Viktor Liu cdd5c6c005 Address review 2025-08-26 21:01:55 +02:00
Viktor Liu 758a97c352 Generate ssh_config independently of ssh server 2025-07-14 22:02:41 +02:00
Viktor Liu d93b7c2f38 Fix known hosts entries 2025-07-14 21:41:59 +02:00
Viktor Liu fa893aa0a4 Fix build 2025-07-12 00:49:08 +02:00
Viktor Liu 9a7daa132e Fix client ssh file 2025-07-11 22:08:28 +02:00
Viktor Liu 088956645f Fix username validation and skip ci tests properly 2025-07-03 15:36:42 +02:00
Viktor Liu aa30b7afe8 More windows tests 2025-07-03 14:11:20 +02:00
Viktor Liu f1bb4d2ac3 Fix more Windows tests 2025-07-03 13:35:53 +02:00
Viktor Liu 982841e25b Test up tests users if none are available on CI 2025-07-03 12:33:31 +02:00
Viktor Liu a476b8d12f Fix more windows tests 2025-07-03 11:26:04 +02:00
Viktor Liu a21f924b26 Fix some windows tests 2025-07-03 10:20:16 +02:00
Viktor Liu 9e51d2e8fb Fix lint and sonar 2025-07-03 09:58:25 +02:00
Viktor Liu 3e490d974c Remove duplicated code 2025-07-03 03:40:27 +02:00
Viktor Liu 04bb314426 Allow sftp same user switching on windows 2025-07-03 02:19:12 +02:00
Viktor Liu 6e15882c11 Fix tests and windows username validation 2025-07-03 01:58:15 +02:00
Viktor Liu 76f9e11b29 Fix tests 2025-07-03 01:07:58 +02:00
Viktor Liu 612de2c784 Remove socketfilter temporarily 2025-07-02 22:00:10 +02:00
Viktor Liu 1fdde66c31 More lint 2025-07-02 21:55:25 +02:00
Viktor Liu 5970591d24 Fix lint 2025-07-02 21:32:39 +02:00
Viktor Liu 0d5408baec Fix lint 2025-07-02 21:04:58 +02:00
Viktor Liu 96084e3a02 Reduce complexity 2025-07-02 20:43:17 +02:00
Viktor Liu 4bbca28eb6 Fix lint 2025-07-02 20:23:23 +02:00
Viktor Liu 9d1554f9f7 Complete overhaul 2025-07-02 19:35:19 +02:00
Viktor Liu f56075ca15 Tidy mod 2025-07-02 19:34:36 +02:00
Viktor Liu 6ed846ae29 Refactor ssh server and client 2025-07-02 19:34:36 +02:00
Viktor Liu 520f2cfdb4 Remove implicit inbound ssh firewall rules and change default port 2025-07-02 19:34:32 +02:00
Viktor Liu 15f0a665f8 [client] Allow ssh server on freebsd (#3170)
* Enable ssh server on freebsd

* Fix listening in netstack mode

* Fix panic if login cmd fails

* Tidy up go mod
2025-01-14 12:43:13 +01:00
Bethuel Mmbaga 6016d2f7ce Fix lint (#2427) 2024-08-14 13:30:10 +03:00
4fec709bb1 Release 0.28.0 (#2092)
* compile client under freebsd (#1620)

Compile netbird client under freebsd and now support netstack and userspace modes.
Refactoring linux specific code to share same code with FreeBSD, move to *_unix.go files.

Not implemented yet:

Kernel mode not supported
DNS probably does not work yet
Routing also probably does not work yet
SSH support did not tested yet
Lack of test environment for freebsd (dedicated VM for github runners under FreeBSD required)
Lack of tests for freebsd specific code
info reporting need to review and also implement, for example OS reported as GENERIC instead of FreeBSD (lack of FreeBSD icon in management interface)
Lack of proper client setup under FreeBSD
Lack of FreeBSD port/package

* Add DNS routes (#1943)

Given domains are resolved periodically and resolved IPs are replaced with the new ones. Unless the flag keep_route is set to true, then only new ones are added.
This option is helpful if there are long-running connections that might still point to old IP addresses from changed DNS records.

* Add process posture check (#1693)

Introduces a process posture check to validate the existence and active status of specific binaries on peer systems. The check ensures that files are present at specified paths, and that corresponding processes are running. This check supports Linux, Windows, and macOS systems.


Co-authored-by: Evgenii <mail@skillcoder.com>
Co-authored-by: Pascal Fischer <pascal@netbird.io>
Co-authored-by: Zoltan Papp <zoltan.pmail@gmail.com>
Co-authored-by: Viktor Liu <17948409+lixmal@users.noreply.github.com>
Co-authored-by: Bethuel Mmbaga <bethuelmbaga12@gmail.com>
2024-06-13 13:24:24 +02:00
Yury Gargay d1a323fa9d Add gocritic linter (#1324)
* Add gocritic linter

`gocritic` provides diagnostics that check for bugs, performance, and style issues

We disable the following checks:

- commentFormatting
- captLocal
- deprecatedComment

This PR contains many `//nolint:gocritic` to disable `appendAssign`.
2023-11-27 16:40:02 +01:00
Maycon Santos b726b3262d Add codespell job (#1281)
add codespell workflow and fixed spelling issues
2023-11-07 13:37:57 +01:00
Pascal Fischer 8eb098d6fd add sleep and comment 2023-06-23 17:02:34 +02:00
Pascal Fischer 68a8687c80 fix linter 2023-06-23 16:45:07 +02:00
Pascal Fischer f7d97b02fd fix error codes on cli 2023-06-23 16:27:10 +02:00
Pascal Fischer 2691e729cd fix ssh 2023-06-23 12:20:14 +02:00
Maycon Santos ff729f6755 Use id command for user lookup on MacOS (#384)
When building client without CGO, user.Lookup
attempts to get user from /etc/passwd
Which doesn't have the user as MacOS uses
opendirectoryd as user directory
2022-07-07 16:13:46 +02:00
Misha Bragin d4a3ee9d87 Load user profile when SSH (#380)
This PR fixes issues with the terminal when
running netbird ssh to a remote agent.
Every session looks up a user and loads its
profile. If no user is found, the connection is rejected.
The default user is root.
2022-07-07 11:24:38 +02:00