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
v2ray在UDP方面代理无法验证成功 #365
Comments
你贴的配置文件不完整?从你贴的内容来看,你想达到的效果是 socks <-> socks? 如果可以的话,把 loglevel 设为 info 看一下详细的情况。 |
附件是配置文件,错误日志信息:
2017/01/18 16:58:21 [Warning]V2Ray started.
2017/01/18 16:59:44 [Info]Socks: Client UDP connection from udp:127.0.0.1:59142
2017/01/18 16:59:44 [Error]Socks|Server: Failed to parse UDP request: [Socks|UDP: Fragmented payload.]
2017/01/18 17:00:50 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:50 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:50 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:50 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:51 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:51 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:51 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:51 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:52 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:52 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:52 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:52 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:53 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:53 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:55 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:55 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:56 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:56 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:56 [Info]Socks: Client UDP connection from udp:127.0.0.1:59142
2017/01/18 17:00:56 [Error]Socks|Server: Failed to parse UDP request: [Socks|UDP: Fragmented payload.]
2017/01/18 17:00:58 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:58 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:00:59 [Error]Error starting Point server: [All retry attempts failed.]
2017/01/18 17:01:12 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:12 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:13 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:13 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:14 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:14 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:15 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:15 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:16 [Info]Socks: Client UDP connection from udp:127.0.0.1:59142
2017/01/18 17:01:16 [Error]Socks|Server: Failed to parse UDP request: [Socks|UDP: Fragmented payload.]
2017/01/18 17:01:16 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:16 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:17 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:17 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:19 [Error]Shadowsocks: Failed to listen TCP on 127.0.0.1:8095: [Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:19 [Error]Failed to start inbound detour:[Interent|TCPHub: Failed to listen on address: 127.0.0.1 : 8095] > listen tcp 127.0.0.1:8095: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
2017/01/18 17:01:21 [Error]Error starting Point server: [All retry attempts failed.]
2725262@qq.com
发件人: Darien Raymond
发送时间: 2017-01-18 16:45
收件人: v2ray/v2ray-core
抄送: lovetcp; Author
主题: Re: [v2ray/v2ray-core] v2ray在UDP方面代理无法验证成功 (#365)
你贴的配置文件不完整?从你贴的内容来看,你想达到的效果是 socks <-> socks? 如果可以的话,把 loglevel 设为 info 看一下详细的情况。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
{
"log": {
"access": "./v2ray_access.log",
"error": "./v2ray_error.log",
"loglevel": "debug" //loglevel: 错误日志的级别,可选的值为"debug"、"info"、"warning"、"error" 和 "none"
},
"dns": {
"hosts": {
"a.com": "127.0.0.1"
},
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"inbound": {
"port": 8095,
"listen": "127.0.0.1",
"protocol": "shadowsocks",
"settings": {
"method": "aes-256-cfb", // 加密方式,支持 aes-256-cfb 和 aes-128-cfb
"password": "v2ray", // 密码,必须和客户端相同
"udp": true // 是否开启 UDP 转发
}
},
"inboundDetour": [ //举例如果只想使用KCP一种inboundDetour的整个段就可以全部删除^_^
{
"port": 8096, // 监听端口
"protocol": "http", // 入口协议为http
"settings": {
}
},
{
"port": 8098, // 监听端口
"protocol": "socks", // 入口协议为 SOCKS 5
"settings": {
"auth": "noauth", // 不认证
"udp": true, // 不开启 UDP 转发
"ip": "127.0.0.1",
"timeout": 0
}
}
],
"outbound": {
"protocol": "freedom", // 默认直连,只有路由匹配的域名才转发
"settings": {}
},
"outboundDetour": [
{
"protocol": "shadowsocks", // 开启 Shadowsocks
"tag": "blocked1",
"settings": {
"servers": [
{
"address": "127.0.0.1",
"port": 8097,
"method": "aes-256-cfb",
"password": "6eb7d9$fac98e78f",
"ota": false
}
]
}
},
{
"protocol": "socks",
"tag": "udptest",
"settings": {
"servers": [{
"address": "127.0.0.1",
"port": 7901,
"users": [
{
"user": "test user",
"pass": "test pass"
}
]
}]
}
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"domain": [
"baidu.com" // 匹配所有包含".goo"的域名,如 www.google.com,www.googleapis.com
],
"outboundTag": "blocked1" // 与 VMess 协议的标签一致,所以匹配上述域名的请求将被中转
},
{
"type": "field",
"ip": "0.0.0.0/8", //根据IP进行匹配处理
"outboundTag": "direct"
},
{
"type": "field",
"network": "tcp,udp", //UDP协议?
"outboundTag": "udptest"
}
]
}
}
} |
我是通过8098去做UDP代理访问 |
V2TAY支持UDP转发的会话管理么? |
你的 log 能看出两个问题:
|
是的,是类似与QQ的。 |
fragmented UDP 转发暂时没有实现,如果你能提供具体的客户端信息,我可以调试一下。
什么是会话管理? |
我 无法上传zip文件。。可以如何发给你? |
发邮件到 love@v2ray.com,或者各种网盘都可以 |
链接:http://pan.baidu.com/s/1cMkWhC 密码:5mvi
2725262@qq.com
发件人: Darien Raymond
发送时间: 2017-02-06 22:08
收件人: v2ray/v2ray-core
抄送: lovetcp; Author
主题: Re: [v2ray/v2ray-core] v2ray在UDP方面代理无法验证成功 (#365)
发邮件到 love@v2ray.com,或者各种网盘都可以
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
链接:http://pan.baidu.com/s/1cMkWhC 密码:5mvi |
已下载,你能不能解释一下每一个文件的作用,以及如何使用? |
那个demos.zip中存在两个可以执行程序,一个是客户端,可以启动多个,一个是服务端。 |
请问有进展么? |
请问这个有进展么? |
暂时还没有时间研究这个 |
你需要一个 socks 代理来转发 UDP 数据,而不是单纯把 UDP 数据发往 socks 的 UDP 端口。或者使用 dokodemo-door 的透明代理功能。 |
提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。
你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
V2Ray v2.15.1 (One for all) 20170116
你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
通过客户端UDP程序访问由V2RAY的UDP代理程序,然后转发到UDP服务。
你看到的不正常的现象是什么?
无法连同,通过UDP客户端是可以正常访问UDP服务
你期待看到的正确表现是怎样的?
能够正常通过V2RAY的UDP代理实现UDP访问转发
请附上你的配置文件(提交 Issue 前请隐藏服务器端IP地址)。
/var/log/v2ray/error.log
文件中。没有日志产生
The text was updated successfully, but these errors were encountered: