xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
3.14k stars 433 forks source link

功能增强, TUN 接口(虚拟网卡)的 IP 设置,和网关设置。 #30

Closed sdfsdfsdf145314364 closed 3 years ago

sdfsdfsdf145314364 commented 3 years ago

希望能增加这两个功能,此功,在win上是必不可少的,能直接设置最好,可以让使用者减轻很多麻烦。

-tunAddr 10.0.0.2 -tunGw 10.0.0.1 如其他版本tun2socks一样。

xjasonlyu commented 3 years ago

目前考虑到多系统的兼容性,设置接口地址建议直接通过脚本来一并解决(包括路由表的配置)。

只要一条命令就可以配置接口地址netsh interface ip set address <interface> static <address> <netmask>,网关地址可以不用设置。

f4nff commented 3 years ago

设置接口地址建议直接通过脚本来一并解决(包括路由表的配置)。

表示非常认同,

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days