Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

[Bug]路由对tproxy无效 #142

Closed
lw4free opened this issue Sep 2, 2022 · 3 comments
Closed

[Bug]路由对tproxy无效 #142

lw4free opened this issue Sep 2, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@lw4free
Copy link

lw4free commented Sep 2, 2022

Describe the bug【描述 bug】
多个出口,IP路由对tproxy无效,socks5是有效的。

To Reproduce【如何复现该bug】
浏览器通过tproxy访问172.16.2.82和浏览器通过socks5访问172.16.2.82

Expected behavior【预期的行为】

Envs (please complete the following information):【系统环境】
almaLinux9+VS v1.2.4

Config file 【配置文件,客户端服务端配置都提供】

[app]
logfile = "/var/log/verysimple/vs_log" 

[[listen]]
tag = "socks"
protocol = "socks5"
host = "0.0.0.0"
port = 1080

[[listen]]
protocol = "tproxy"
ip = "0.0.0.0"    # 这里不要填 127.0.0.1了,否则只会转发本机流量,而一般作为透明代理都是为了转发局域网内其它设备的流量的。
port = 3128

[[dial]]
tag = "proxy"
protocol = "vless"
uuid = "bfbdcd6d-3b6d-4524-a55f-**********"
host = "IP"
port = 6081
version = 0
utls = true
advancedLayer = "grpc"
path = "**********"

[[dial]]
tag = "offic"
protocol = "vless"
uuid = "bfbdcd6d-3b6d-4524-a55f-**********"
host = "IP"
port = 6083
version = 0
utls = true
advancedLayer = "grpc"
path = "**********"

[[dial]]
tag = "direct"
protocol = "direct"

[[route]]
ip = ["172.16.2.0/24"]
toTag = ["offic"]

服务器无关
Debug Log 【Debug日志, 客户端 和 服务端 的 日志 都提供】

{"L":"INFO ","T":"220902 085153.759","M":"New Accepted Conn","connid":541695,"from":"127.0.0.1:59386","handler":"tcp+socks5://127.0.0.1:1080#socks"}
{"L":"INFO ","T":"220902 085153.760","M":"Route","connid":541695,"to outtag":"offic","with addr":"127.0.0.1:6083","and protocol":"tcp+grpc+vless","for source":{"Addr":{"Network":"","Name":"","IP":"172.16.2.82","Port":80},"InTag":"socks","UserIdentityStr":""}}
{"L":"INFO ","T":"220902 085153.761","M":"Request","connid":541695,"from":"127.0.0.1:59386","target":"tcp://172.16.2.82:80","through":"tcp+grpc+vless://127.0.0.1:6083#offic"}
{"L":"INFO ","T":"220902 085158.757","M":"TProxy loop read got new tcp","->":"172.16.2.82:80"}
{"L":"INFO ","T":"220902 085158.758","M":"Request","connid":939190,"from":"","target":"tcp://172.16.2.82:80","through":"tcp+grpc+vless://127.0.0.1:6081#proxy"}

Other 【其他】

【注意,配置文件和客户端服务端配置 太长的话,前后加上三个 ```】

@lw4free lw4free added the bug Something isn't working label Sep 2, 2022
@e1732a364fed
Copy link
Owner

收到。

@e1732a364fed
Copy link
Owner

最新代码应该修复了。

@lw4free
Copy link
Author

lw4free commented Sep 14, 2022

感谢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants