Nikolay Edigaryev
df84a30016
--allow: support "@host" syntax ( #160 )
...
* --allow: support "@host" syntax
To make communication with the guest VM possible
when using --block=0.0.0.0/0.
* Use "@-alias" wording instead of "@host"
2026-05-15 16:06:03 +02:00
Nikolay Edigaryev
173f7832b3
DHCP snooper: use coarse time to avoid clock_gettime() overhead ( #137 )
...
* DHCP snooper: use coarse time to avoid clock_gettime() overhead
* Introduce uncertainty duration and subtract it from total lease time
* Update coarse time after we've performed the waiting
* Use coarsetime::Updater to update time even when deep inside event loop
* No need for manual coarsetime::Instant::update() anymore
* Ensure that coarsetime::Updater is stopped on Proxy::shutdown()
* Revert "Ensure that coarsetime::Updater is stopped on Proxy::shutdown()"
This reverts commit de255f4240 .
* Revert "Use coarsetime::Updater to update time even when deep inside event loop"
This reverts commit 6a95272dcf .
* Revert "No need for manual coarsetime::Instant::update() anymore"
This reverts commit 9ffa829add .
* Update coarse time for the DHCP snooper after reading packet(s)
2026-01-14 21:16:19 +01:00
Nikolay Edigaryev
dfc04a49e4
.goreleaser.yml: require macOS Sequoia (see #128 )
2025-10-28 13:49:09 +01:00
Nikolay Edigaryev
7dc5992b55
Perform batched reads from host to improve efficiency ( #128 )
...
* Perform batched reads from host to improve efficiency
* CI: don't test on macOS Sonoma
2025-10-28 16:48:05 +04:00
Nikolay Edigaryev
431ae9bbc9
Introduce --block in addition to --allow ( #126 )
2025-10-21 17:14:28 +04:00
Nikolay Edigaryev
4fa4fb1bda
Avoid using one-shot triggered events ( #102 )
2025-04-21 18:16:09 +04:00
Nikolay Edigaryev
54e02845ac
Add CODEOWNERS and group all Dependabot updates in a single PR ( #96 )
2025-03-31 19:15:04 +04:00
Nikolay Edigaryev
179ef6c282
CI(rustup): install toolchain in addition to target
2025-03-03 19:06:58 +01:00
Nikolay Edigaryev
539cff564d
README.md: clarify how Softnet restricts networking ( #71 )
2025-01-10 19:31:08 +04:00
Nikolay Edigaryev
8519fa2f86
Support TCP port exposure via "--expose" command-line argument ( #70 )
2025-01-09 16:50:39 +04:00
Nikolay Edigaryev
f3acef87a7
Upgrade "dhcproto" and "url" crates to avoid depending on "idna" < 1.0.0 ( #69 )
2025-01-06 18:53:37 +04:00
Nikolay Edigaryev
24641d5325
$ cargo update ( #48 )
2024-10-03 23:54:02 +04:00
Nikolay Edigaryev
ed64c139cf
dependabot.yml: enable version updates for Cargo ( #42 )
2024-10-03 23:45:45 +04:00
Nikolay Edigaryev
8359992a08
$ cargo update ( #40 )
...
Also convert the "rust-toolchain" to "rust-toolchain.toml".
2024-07-23 14:33:31 +04:00
Nikolay Edigaryev
147c051b0e
Disable isolation when --allow=0.0.0.0/0 is specified ( #39 )
...
* Disable isolation when --allow=0.0.0.0/0 is specified
* Upgrade & upgrade the dependencies
2024-07-02 15:36:07 +04:00
Nikolay Edigaryev
6456ed7228
README.md: proper nested bullet point syntax
2024-06-13 14:57:44 +04:00
Nikolay Edigaryev
56808c591f
README.md: remove extraneous space
2024-06-13 14:57:02 +04:00
Nikolay Edigaryev
eba21ed33e
Link to Wikipedia's "ARP spoofing" article
...
And include some examples of the tools.
2024-06-13 14:56:01 +04:00
Nikolay Edigaryev
867679446e
Ignore socketpair(2) errors when sending ( #36 )
2024-03-25 12:37:53 -04:00
Nikolay Edigaryev
4a13c5922b
Prevent multiple --allow flags ( #35 )
...
* Prevent multiple --allow flags
* --allow: better value name instead of just <ALLOW>
2024-03-11 23:02:59 +04:00
Nikolay Edigaryev
a92f4e0c99
Introduce --allow command-line argument to allow traffic to CIDRs ( #34 )
2024-03-11 22:07:39 +04:00
Nikolay Edigaryev
cd5f1d2f4f
Fix unaligned read by switching from unmaintained users crate ( #26 )
...
* Fix unaligned read by switching from unmaintained users crate
* Bump proc-macro2 to to fix "unknown feature `proc_macro_span_shrink`"
2023-09-12 06:59:02 -04:00
Nikolay Edigaryev
f38d65f98f
README.md: Tart now uses --net-softnet
2023-03-28 08:21:19 +04:00
Nikolay Edigaryev
d7699e95a9
Support graceful termination via SIGINT ( #23 )
...
* Support graceful termination via SIGINT
* $ cargo fmt
* Explain why we need to ignore the SIGINT
2023-03-16 18:38:03 +04:00
Nikolay Edigaryev
d635751948
Capture ENOBUFS message into Sentry only once ( #19 )
2022-12-24 11:36:42 +04:00
Nikolay Edigaryev
59cd9098e0
Ignore ENOBUFS when writing to VM's socket ( #18 )
...
* Ignore ENOBUFS when writing to VM's socket
* Hint the into() target type to the compiler to fix the build error
* Fix Clippy warnings
2022-12-15 00:15:19 +04:00
Nikolay Edigaryev
4ab3cd7e5c
Switch back to nightly toolchain ( #16 )
2022-12-14 23:18:24 +04:00
Nikolay Edigaryev
cd78047d79
Upload symbols and sources to Sentry ( #15 )
...
* Upload symbols and sources to Sentry
* .cirrus.yml: add SENTRY_AUTH_TOKEN
* .cirrus.yml: install Sentry CLI
2022-12-14 19:34:26 +04:00
Nikolay Edigaryev
11910d8540
Sentry integration ( #13 )
...
* Sentry integration
* Introduce a more generic CIRRUS_SENTRY_TAGS
* Revert switching to nightly toolchain
2022-12-12 21:33:45 +04:00
Nikolay Edigaryev
22c92688e5
Don't panic in Drop ( #12 )
2022-11-19 20:53:30 +04:00
Nikolay Edigaryev
e2403f0ea9
Only perform DHCP snooping for frames destined to the VM ( #10 )
2022-11-10 20:31:18 +04:00
Nikolay Edigaryev
717e6b0f89
Increase the default bootpd(8) lease time from 1 to 10 minutes ( #8 )
2022-10-21 19:09:18 +04:00
Nikolay Edigaryev
71465f8bff
README.md: clarify installation instructions a bit
2022-10-13 18:30:30 +04:00
Nikolay Edigaryev
ce129ba5cb
Allow host communication ( #7 )
...
* Allow communication with host
* Clarify missing root privileges message
2022-08-12 17:50:10 +03:00
Nikolay Edigaryev
c231fd5e68
Release on Homebrew using GoReleaser ( #5 )
...
* Release on Homebrew using GoReleaser
* Add a Build task
2022-06-21 20:56:57 +03:00
Nikolay Edigaryev
38a1a31a03
License under AGPL-3.0 ( #4 )
2022-06-21 15:59:35 +03:00
Nikolay Edigaryev
88cd05e112
Automatically escalate privileges via passwordless sudo ( #3 )
...
* Automatically escalate privileges via passwordless sudo
* README.md: document passwordless sudo option in requirements
2022-06-14 17:41:07 +03:00
Nikolay Edigaryev
226a7e6c86
Initial revision of Softnet, a software networking for Tart
2022-06-10 16:53:03 +03:00