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

windows tun mode how to set router table? #1396

Open
robyousugar opened this issue Dec 28, 2023 · 5 comments
Open

windows tun mode how to set router table? #1396

robyousugar opened this issue Dec 28, 2023 · 5 comments

Comments

@robyousugar
Copy link

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?

@zonyitoo
Copy link
Collaborator

I am not an expert of windows. Let’s see if there are any one could help.

@robyousugar
Copy link
Author

robyousugar commented Dec 28, 2023

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?

@zonyitoo
Copy link
Collaborator

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.

@hainesc
Copy link

hainesc commented Feb 15, 2024

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:

  1. How can I active it, may I change it to default route record?
  2. 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.

@hainesc
Copy link

hainesc commented Feb 16, 2024

see the discussion: #1432

zonyitoo added a commit that referenced this issue Feb 19, 2024
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

3 participants