Skip to content

fix(nftables): skip loopback interface in nftablesCreateUnreachable#76

Open
cagedbird043 wants to merge 1 commit into
SagerNet:devfrom
cagedbird043:fix-strict-route-loopback-ipv6
Open

fix(nftables): skip loopback interface in nftablesCreateUnreachable#76
cagedbird043 wants to merge 1 commit into
SagerNet:devfrom
cagedbird043:fix-strict-route-loopback-ipv6

Conversation

@cagedbird043

Copy link
Copy Markdown

When strict_route is enabled and IPv6 is disabled, the nftablesCreateUnreachable rule rejects all IPv6 traffic globally. However, it currently blocks the loopback (lo) interface as well, which breaks IPv6 loopback (::1) and causes localhost resolution/connectivity issues on Linux systems that prefer IPv6 loopback.

This PR adds an explicit exemption for the lo interface in nftablesCreateUnreachable.

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