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

3.6版本 VPN内部tun 的两个问题 #628

Closed
ferristale opened this issue Jun 1, 2023 · 6 comments
Closed

3.6版本 VPN内部tun 的两个问题 #628

ferristale opened this issue Jun 1, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@ferristale
Copy link

ferristale commented Jun 1, 2023

描述问题

  1. 无论开启系统代理与否,若以内部tun开启vpn模式,会导致无法url test
  2. 如不勾选内部tun,vpn模式不会代理浏览器流量,这是何解?

如何复现

  1. 打开内部tun后 url test
  2. 见回复

日志
1

INFO[0000] router: updated default interface WLAN, index 20
[[Shadowsocks] 🇺🇸 美国 ] 测试错误: start service: initialize inbound/tun[tun-in]: configure tun interface: Cannot create a file when that file already exists.
@ferristale ferristale changed the title 3.6版本 开启内部tun时无法进行 url test 3.6版本 VPN内部tun 的两个问题 Jun 1, 2023
@arm64v8a
Copy link
Contributor

arm64v8a commented Jun 1, 2023

问题 1. 可能是bug
问题2. 请上传 console 的日志。

@arm64v8a arm64v8a added the bug Something isn't working label Jun 1, 2023
@arm64v8a
Copy link
Contributor

arm64v8a commented Jun 1, 2023

console 指的是 你开 "隐藏控制台" 选项隐藏的那部分的日志。

@ferristale
Copy link
Author

ferristale commented Jun 1, 2023

console 指的是 你开 "隐藏控制台" 选项隐藏的那部分的日志。

了解了,现在新的情况是,取消勾选 "隐藏控制台" 后,流量被正常接管,打开 "隐藏控制台" ,则无法接管,但这部分的日志我无法提取?
(都是开启内部tun)
(都是关闭内部tun)

隐藏控制台的日志.txt

@arm64v8a
Copy link
Contributor

arm64v8a commented Jun 1, 2023

INFO[0008] [3453916544 16ms] router: found process path: \Device\HarddiskVolume1\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
INFO[0009] [3453916544 192ms] outbound/socks[nekoray-socks]: outbound connection to 165.22.41.103:443

这里看到正常接管了。

打开 "隐藏控制台" ,则无法接管

目前对你而言只有 关闭 "隐藏控制台" 可用,所以暂时就这样使用。

都是开启内部tun

你提供的是关闭 内部tun 的日志。

@ferristale
Copy link
Author

ferristale commented Jun 1, 2023

你提供的是关闭 内部tun 的日志。

是的,前面写错了,是在关闭情况下测试的

我现在知道怎么复现了:

  1. 启用 内部tun + 隐藏控制台,启动VPN
  2. 取消 内部tun,会提示重启VPN生效,此时通过“程序”菜单里"重启代理"来重启, 即可复现

若是通过关闭VPN, 再打开VPN的方法来重启, 则一切正常
但是这个时候, 如果我 保持启用 内部tun, 关闭 隐藏控制台, 关开VPN, 没有控制台跳出来, 浏览器也无法接管
此时, 关闭 内部tun, 关开VPN, 正常

目前测试下来, 内部tun 和 隐藏控制台 有一些重合
在前者开启情况下, 后者无论开不开, 都不会有控制台弹出来, 可以正常使用.
这时候再关掉 内部tun, 如果用菜单里的重启代理, 就会无法接管

而在有控制台的情况下, 打开 内部tun, 通过用菜单里的重启代理会报错
以及在有控制台的情况下, 打开 内部tun, 取消VPN的勾, 控制台不会自动关闭, 再打开就会报错, 这俩是同一个错误
start service: initialize inbound/tun[tun-in]: configure tun interface: Cannot create a file when that file already exists.

update
开启 内部tun情况下, 只要更改 隐藏控制台 的设置, 即使通过关开 VPN来重启, 也无法接管浏览器

@arm64v8a
Copy link
Contributor

arm64v8a commented Jun 2, 2023

切换 内部 tun 等选项后建议重启程序,这里边界情况太多不好处理,不修。

重复创建接口的bug
https://github.com/MatsuriDayo/nekoray/actions/runs/5151418921
此版本应该已经修复,有问题再开issue。

@arm64v8a arm64v8a closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants