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

Update local network routing #1117

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sources/NetworkProtection/Routing/VPNRoutingRange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ public enum VPNRoutingRange {
"::1/128", /* loopback */
]

public static let localNetworkRangeWithoutDNS: [NetworkProtection.IPAddressRange] = [
"172.16.0.0/12", /* 255.240.0.0 */
"192.168.0.0/16", /* 255.255.0.0 */
]

public static let localNetworkRange: [NetworkProtection.IPAddressRange] = [
// "10.0.0.0/8", /* 255.0.0.0 */
"10.0.0.0/8", /* 255.0.0.0 */
"172.16.0.0/12", /* 255.240.0.0 */
"192.168.0.0/16", /* 255.255.0.0 */
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct VPNRoutingTableResolver {
var routes = VPNRoutingRange.alwaysExcludedIPv4Range

if excludeLocalNetworks {
routes += VPNRoutingRange.localNetworkRange
routes += VPNRoutingRange.localNetworkRangeWithoutDNS
}

return routes
Expand Down
Loading