shadowsocks-rust
shadowsocks-rust copied to clipboard
windows tun mode how to set router table?
tun 10.1.0.1 ID 14 lan 192.168.2.130 ID 7 i use command "route add 0.0.0.0 mask 0.0.0.0 10.1.0.1 metric 5" but not working ... how to set route table in windows?
I am not an expert of windows. Let’s see if there are any one could help.
It seems that there is an issue with dns parsing. do I need to enable Local DNS in tun mode? or is there a method for hijack dns?
It currently is just a pure tun interface. You could just set your system’s DNS server to a specific remote server, then DNS queries will be proxied to ssserver.
Same issue on MacOS, when I run the example command in following the docs,
./sslocal --protocol tun -s "[::1]:8388" -m "aes-256-gcm" -k "hello-kitty" --outbound-bind-interface lo0 --tun-interface-address 10.255.0.1/24
and query the route table, I found it makes a new record.
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 60 0 en0
10.0.0.255 10.255.0.1 UH 0 0 utun4
...
But AFAIK, this route record is not reachable unless I make a IP packet with destination = "10.0.0.255". If I visit google.com, since is destination IP is not 10.0.0.255, it should not make effort. So, My question are:
- How can I active it, may I change it to default route record?
- As I think the answer of first question is not support, so I 'd like to know if there is any roadmap to make it work as default?
cc @zonyitoo appreciate for your reply.
see the discussion: https://github.com/shadowsocks/shadowsocks-rust/issues/1432