Skip to content

fix: avoid attributing forwarded traffic to local processes - #3040

Open
xream wants to merge 1 commit into
MetaCubeX:Alphafrom
xream:codex/guard-process-lookup-local-source
Open

fix: avoid attributing forwarded traffic to local processes#3040
xream wants to merge 1 commit into
MetaCubeX:Alphafrom
xream:codex/guard-process-lookup-local-source

Conversation

@xream

@xream xream commented Jul 28, 2026

Copy link
Copy Markdown

Forwarded connections can be attributed to an unrelated local process when their source port collides with a local socket, causing PROCESS-NAME rules to match traffic from another host.

This skips process lookup only when the source address is not owned by the mihomo host. Unlike exact-match-only changes in the Linux socket resolver, it leaves the existing netlink fallback intact for local traffic, including wildcard/NAT cases where strict matching may fail.

Skip process lookup when the source IP is not owned by this host, preventing source-port collisions from borrowing a local socket identity while preserving the existing fallback for local traffic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant