Repository navigation
Description
Platform
Linux
ProxyBridge Version
Linux v4.0.0 (official release package)
OS and Version
Fedora Linux 44 Workstation, x86_64; kernel 7.2.13-200.fc44.x86_64; Btrfs
Documentation
- I have read the ProxyBridge documentation for my platform, including the troubleshooting information
- I have searched the existing issues and did not find this problem reported
Code Review
- I have gone through the code page
Describe the Bug
On Fedora 44 with Btrfs, enabling per-proxy "DNS via proxy" (SendDomainToProxy) causes DNS timeouts and can prevent Antigravity 2.28.2 from completing startup. Global DnsViaProxy remains false. ProxyBridge logs UDP sender-mismatch drops.
Expected: legitimate DNS datagrams from an unchanged process should pass sender validation.
Actual: legitimate UDP flows appear to be rejected because the executable device ID recorded by eBPF differs from stat(/proc//exe), although the inode matches.
This is a diagnosis based on local runtime observations and source inspection, not yet confirmed by testing a patched build. Details below.
Steps to Reproduce
- Start the official ProxyBridge Linux v4.0.0 systemd service on the Btrfs-based system described above.
- Add the SOCKS5 proxy and Antigravity rule listed below.
- Keep global DnsViaProxy disabled; enable the per-proxy "DNS via proxy" (SendDomainToProxy) option.
- Fully close and relaunch Antigravity 2.28.2 via its desktop launcher, which directly runs ~/.local/opt/antigravity/antigravity without proxy environment variables. Allow startup DNS lookups to occur.
- Observe DNS timeouts, UDP sender-mismatch messages, and a startup-stalled/unresponsive backend (language_server).
- Disable only per-proxy SendDomainToProxy and fully restart Antigravity. DNS resolution and backend startup recover on this machine.
This is the original application-based reproduction, not yet a standalone minimal reproducer. DNS caching may affect timing.
Your Rules
One enabled rule:
Name: Antigravity
ProcessName: /home//.local/opt/antigravity/* (replace with the actual username)
TargetHosts: *
TargetPorts: *
TargetDomains: empty
Protocol: BOTH
Action: PROXY -> Clash (proxy ID 1)
LocalhostViaProxy: false
Global DnsViaProxy: false
Per-proxy SendDomainToProxy: true for reproduction, false for recovery.
Your Proxy Server
SOCKS5 on the same PC: 127.0.0.1:7897, no authentication. Software: Clash Verge Rev / Mihomo; exact version not recorded during diagnosis. Per-proxy SendDomainToProxy enabled to reproduce, disabled for recovery. Mihomo supports UDP ASSOCIATE; a separate end-to-end UDP proxy test result was not recorded.
Your Setup
Native Fedora 44 Workstation on Btrfs. Official ProxyBridge root systemd service. Antigravity 2.28.2 and language_server run from the home subvolume without proxy environment variables. Local Clash Verge Rev / Mihomo is the upstream proxy. Global ProxyBridge DnsViaProxy is false. Clash DNS is enabled at 127.0.0.1:7874, fake-ip, DNS IPv6 disabled. Other firewall/security software was not exhaustively audited.
Logs and Screenshots
Relay message (N represents the varying counter):
relay: UDP datagram dropped (datagram from a process other than the flow's); N dropped so far
A read-only inspection of the live eBPF flows map compared UDP entries with stat(/proc//exe) for processes still alive, encoding userspace device IDs as (major(st_dev) << 20) | minor(st_dev). All 51 inspected live-process UDP flow entries had a device-ID mismatch. These are flow entries, not 51 unique processes.
| Process | BPF exe_dev | Encoded stat device | BPF inode | stat inode |
|---|---|---|---|---|
| language_server | 36 | 54 | 72288 | 72288 |
| systemd-resolve | 36 | 38 | 283556 | 283556 |
The inspection did not modify the program or configuration.
Before you submit
- I have filled in my rules, proxy server and setup above, and removed any passwords or private data. I understand that a report without these details cannot be verified and may be closed without a reply.
Additional Context
Suspected cause (not yet verified with a patched build):
Linux/src/bpf/proxybridge.bpf.c records mm->exe_file->f_inode->i_sb->s_dev and i_ino. In Linux/src/ProxyBridge.c, pb_core_udp_sender_ok() compares these against stat(/proc//exe):
uint32_t dev = (major(ex.st_dev) << 20) | minor(ex.st_dev);
if (dev != o->exe_dev || ex.st_ino != o->exe_ino) return 0;The observed inode matches, but device IDs differ on these Btrfs subvolumes. The device comparison alone therefore appears to reject legitimate senders. Enabling domain forwarding appears to expose this through DNS observation/UDP relay processing.
Release source:
https://github.com/InterceptSuite/ProxyBridge/blob/v4.0.0_Linux/Linux/src/ProxyBridge.c
https://github.com/InterceptSuite/ProxyBridge/blob/v4.0.0_Linux/Linux/src/bpf/proxybridge.bpf.c
https://github.com/InterceptSuite/ProxyBridge/blob/v4.0.0_Linux/Linux/src/pb_relay.c
Could you verify executable identity comparison on Btrfs and use compatible identifiers on both sides while preserving sender-validation security checks? I am not suggesting simply removing validation.
Workaround: leave global DnsViaProxy and per-proxy SendDomainToProxy disabled. Application connections still go through ProxyBridge; Clash can sniff domain names when needed. A separate Google TLS EOF issue was resolved with Clash parse-pure-ip sniffing and is outside the scope of this report.
No ProxyBridge patch has been applied or tested, and no ext4 comparison has been performed.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(linux): recognise programs on Btrfs (#281, #283)