3 Commits
Author SHA1 Message Date
Zakk 35505baed5 fix: the bound-device option needs Linux 5.14 (SO_NETNS_COOKIE), and the docs say it is off by default 2026-09-21 12:28:42 +10:00
Zakk 01df00559b fix(service): the bound-device flag sits with the transparent-proxy options and names its kernel requirement
--redirect-respect-bound-device was the first field of Params, so it led
--help, --report config and the /etc/default/v2raya the packages generate
from it; it now follows --ipv6-support. Its description says what it does
in the user's terms (SO_BINDTODEVICE, NetworkManager's connectivity
checks) and what it needs (kernel 5.7, cgroup v2). When SO_NETNS_COOKIE
is missing the error says the kernel is too old instead of ENOPROTOOPT.
cilium/ebpf moves to the direct require block, as go mod tidy puts it.
2026-09-21 12:23:51 +10:00
Laceprndpm 6ef28019c5 feat(redirect): add opt-in BPF bypass for device-bound TCP sockets
Inspect bound_dev_if at connect time, preserve existing socket marks and
add the existing 0x80 bypass bit before REDIRECT. Scope the guard to the
manager's network namespace and release real BPF links on teardown.

Include opt-in isolated cgroup tests and document the experimental status,
unverified native behavior, performance work, and connect-time limits.
2026-09-20 13:16:56 +08:00