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

Setting route 0.0.0.0/1 makes the bind_device_by_index_v4 of socket2 unusable #25

Open
xmh0511 opened this issue Mar 25, 2024 · 0 comments

Comments

@xmh0511
Copy link

xmh0511 commented Mar 25, 2024

When setting 0.0.0.0/1, almost traffic are routing to tun, and bind_device_by_index_v4 is used to make the socket binding to the specified network interface such that the traffic of the socket does not pass through the routing table. However, it seems not work when using net-route, the approach does work when using tproxy-config.

The error is

called Result::unwrap() on an Err value: Os { code: 51, kind: NetworkUnreachable, message: "Network is unreachable" }

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

No branches or pull requests

1 participant