net-route icon indicating copy to clipboard operation
net-route copied to clipboard

Setting route `0.0.0.0/1` makes the `bind_device_by_index_v4` of socket2 unusable

Open xmh0511 opened this issue 11 months ago • 0 comments

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" }

xmh0511 avatar Mar 25 '24 09:03 xmh0511