Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicated incoming packets when split tunneling is enabled #6924

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

dlon
Copy link
Member

@dlon dlon commented Oct 4, 2024

This PR prevents incoming packets from private IPs from being forwarded to the VPN tun, which previously caused incoming packets on the LAN (notably/noticeably ICMP) to be duplicated.

The correct implementation would be to forward only packets that weren't originally sent via the VPN utun. For simplicity, the proposed implementation discards packets destined for private IP ranges. This is so we don't have to rely on the routing table.

Unrelatedly, don't kill states related to API traffic (allowed_endpoint) when flushing PF states.

Fix DES-1217.


This change is Reviewable

@dlon dlon requested a review from hulthe October 4, 2024 11:36
Copy link

linear bot commented Oct 4, 2024

hulthe
hulthe previously approved these changes Oct 4, 2024
@dlon dlon merged commit a93f452 into main Oct 4, 2024
51 of 52 checks passed
@dlon dlon deleted the fix-dup-icmp branch October 4, 2024 14:19
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.

2 participants