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

ss+websocket不支持吗? #173

Closed
c21xdx opened this issue Mar 3, 2019 · 26 comments
Closed

ss+websocket不支持吗? #173

c21xdx opened this issue Mar 3, 2019 · 26 comments

Comments

@c21xdx
Copy link

c21xdx commented Mar 3, 2019

SS最近出了新插件 shadowsocks/v2ray-plugin,然后在 https://toutyrater.github.io/basic/Shadowsocks.html
看到一句

可以使用 V2Ray 的传输层配置(详见高级篇),但如果这么设置了将与原版 Shadowsocks 不兼容(兼容 Shadowsocks 新增的 v2ray-plugin插件)。

所以就想试试在服务端部署v2ray的 ss + websocket, 自己电脑客户端用SS windows 客户端 + v2ray-plugin插件 来使用。
因为那个插件用的是4.16,我在服务端部署用的也是4.16,json文件如下

{
"log": {
"access": "",
"error": "",
"loglevel": "debug"
},
  "inbound": {
    "port": 8080,
    "listen": "0.0.0.0",
    "protocol": "shadowsocks",
    "settings": {
      "method": "aes-256-cfb",
      "password": "pass123",
      "udp": false,
      "level": 0
    },
    "streamSettings": {
      "network": "ws"
    }
  },
  "outbound": {
    "protocol": "freedom",
    "settings": {}
  }
}

运行起来后,打开所用的域名网页,显示 Bad Request。信息提示

V2Ray 4.16.0 (Po) 20190214
A unified platform for anti-censorship.
2019/03/03 02:52:31 [Debug] v2ray.com/core/app/log: Logger started
2019/03/03 02:52:31 [Warning] v2ray.com/core: V2Ray 4.16.0 started
2019/03/03 02:52:38 [Info] v2ray.com/core/transport/internet/websocket: failed to convert to WebSocket connection > websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header

电脑SS客户端如下配置
v2ray
用来翻墙打开谷歌也没打开, 是哪里没高对吗?

@icpz
Copy link

icpz commented Mar 4, 2019

因为ss那边分离出了插件层,所以协议结构和v2这边不太一样。

如果想用 v2做server, ss over v2做客户端的话需要在server

  • 设置一个任意门(tag:ws-in),地址设置为 v1.mux.cool,传输协议设置websocket
  • 设置一个ss inbound (tag:ss-loc),传输协议不配置
  • 设置一个freedom outbound (tag: ws-out),redirect到 ss-loc这个inbound
  • 配置路由 ws-in -> ws-out,ss-loc -> 默认freedom

这里有个样例配置

@c21xdx
Copy link
Author

c21xdx commented Mar 4, 2019

因为ss那边分离出了插件层,所以协议结构和v2这边不太一样。

如果想用 v2做server, ss over v2做客户端的话需要在server

  • 设置一个任意门(tag:ws-in),地址设置为 v1.mux.cool,传输协议设置websocket
  • 设置一个ss inbound (tag:ss-loc),传输协议不配置
  • 设置一个freedom outbound (tag: ws-out),redirect到 ss-loc这个inbound
  • 配置路由 ws-in -> ws-out,ss-loc -> 默认freedom

我的这个,你有什么意见吗?
shadowsocks/v2ray-plugin#60

@xianren78
Copy link

因为ss那边分离出了插件层,所以协议结构和v2这边不太一样。

如果想用 v2做server, ss over v2做客户端的话需要在server

  • 设置一个任意门(tag:ws-in),地址设置为 v1.mux.cool,传输协议设置websocket
  • 设置一个ss inbound (tag:ss-loc),传输协议不配置
  • 设置一个freedom outbound (tag: ws-out),redirect到 ss-loc这个inbound
  • 配置路由 ws-in -> ws-out,ss-loc -> 默认freedom

参考了你的配置文件,现在一个v2ray server就可以搞定ss+v2plugin和v2ray client共用了,ss-server+v2plugin可以丢掉了。谢谢!

@zenithiks
Copy link

因为ss那边分离出了插件层,所以协议结构和v2这边不太一样。
如果想用 v2做server, ss over v2做客户端的话需要在server

  • 设置一个任意门(tag:ws-in),地址设置为 v1.mux.cool,传输协议设置websocket
  • 设置一个ss inbound (tag:ss-loc),传输协议不配置
  • 设置一个freedom outbound (tag: ws-out),redirect到 ss-loc这个inbound
  • 配置路由 ws-in -> ws-out,ss-loc -> 默认freedom

参考了你的配置文件,现在一个v2ray server就可以搞定ss+v2plugin和v2ray client共用了,ss-server+v2plugin可以丢掉了。谢谢!

可以看下你完整的json么?

@xianren78
Copy link

xianren78 commented Mar 18, 2019

可以看下你完整的json么?

配合caddy或者ngnix,共用443端口,本配置完全参考了@lcdtyph的样例文件。

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": "10001",        /* this is the server port for client */
      "listen": "127.0.0.1",
      "protocol": "dokodemo-door",
      "tag": "wsdoko",
      "settings": {
        "address": "v1.mux.cool",   /* don't change!!! */
        "followRedirect": false,
        "network": "tcp"
      },
      "streamSettings": {
        "network": "ws",      /* same as v2ray-plugin */
        "wsSettings": {
          "path": "/shadow"
        }
      }
    },
    {
      "port": 9015,   /* this port is not used, but you need to specific */
      "protocol": "shadowsocks",
      "settings": {
        "method": "chacha20-ietf-poly1305",
        "ota": false,
        "password": "mypass",
        "network": "tcp,udp"
      },
      "streamSettings": {
        "network": "domainsocket"
      }
    },
    {
		"port": 10000,
		"listen": "127.0.0.1",
		"protocol": "vmess",
		"tag": "proxy",
		"settings": {
			"clients": [{
				"id": "your uuid",
				"alterId": 64
			}]
		},
		"streamSettings": {
			"network": "ws",
			"wsSettings": {
				"path": "/ray"
			}
		}
	}
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "freedom",
      "tag": "ssmux",
      "streamSettings": {
        "network": "domainsocket"
      }
    }
  ],
  "transport": {
    "dsSettings": {
      "path": "/var/run/ss-loop.sock"  /* the directory must exist before v2ray starts */
    }
  },
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": [
          "wsdoko"
        ],
        "outboundTag": "ssmux"
      },
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  }
}

@zenithiks
Copy link

可以看下你完整的json么?

配合caddy或者ngnix,共用443端口,本配置完全参考了@lcdtyph的样例文件。

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": "10001",        /* this is the server port for client */
      "listen": "127.0.0.1",
      "protocol": "dokodemo-door",
      "tag": "wsdoko",
      "settings": {
        "address": "v1.mux.cool",   /* don't change!!! */
        "followRedirect": false,
        "network": "tcp"
      },
      "streamSettings": {
        "network": "ws",      /* same as v2ray-plugin */
        "wsSettings": {
          "path": "/shadow"
        }
      }
    },
    {
      "port": 9015,   /* this port is not used, but you need to specific */
      "protocol": "shadowsocks",
      "settings": {
        "method": "chacha20-ietf-poly1305",
        "ota": false,
        "password": "mypass",
        "network": "tcp,udp"
      },
      "streamSettings": {
        "network": "domainsocket"
      }
    },
    {
		"port": 10000,
		"listen": "127.0.0.1",
		"protocol": "vmess",
		"tag": "proxy",
		"settings": {
			"clients": [{
				"id": "your uuid",
				"alterId": 64
			}]
		},
		"streamSettings": {
			"network": "ws",
			"wsSettings": {
				"path": "/ray"
			}
		}
	}
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "freedom",
      "tag": "ssmux",
      "streamSettings": {
        "network": "domainsocket"
      }
    }
  ],
  "transport": {
    "dsSettings": {
      "path": "/var/run/ss-loop.sock"  /* the directory must exist before v2ray starts */
    }
  },
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": [
          "wsdoko"
        ],
        "outboundTag": "ssmux"
      },
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  }
}

感谢 已经跑通了

@MxdStudio
Copy link

可以看下你完整的json么?

配合caddy或者ngnix,共用443端口,本配置完全参考了@lcdtyph的样例文件。

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": "10001",        /* this is the server port for client */
      "listen": "127.0.0.1",
      "protocol": "dokodemo-door",
      "tag": "wsdoko",
      "settings": {
        "address": "v1.mux.cool",   /* don't change!!! */
        "followRedirect": false,
        "network": "tcp"
      },
      "streamSettings": {
        "network": "ws",      /* same as v2ray-plugin */
        "wsSettings": {
          "path": "/shadow"
        }
      }
    },
    {
      "port": 9015,   /* this port is not used, but you need to specific */
      "protocol": "shadowsocks",
      "settings": {
        "method": "chacha20-ietf-poly1305",
        "ota": false,
        "password": "mypass",
        "network": "tcp,udp"
      },
      "streamSettings": {
        "network": "domainsocket"
      }
    },
    {
		"port": 10000,
		"listen": "127.0.0.1",
		"protocol": "vmess",
		"tag": "proxy",
		"settings": {
			"clients": [{
				"id": "your uuid",
				"alterId": 64
			}]
		},
		"streamSettings": {
			"network": "ws",
			"wsSettings": {
				"path": "/ray"
			}
		}
	}
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "freedom",
      "tag": "ssmux",
      "streamSettings": {
        "network": "domainsocket"
      }
    }
  ],
  "transport": {
    "dsSettings": {
      "path": "/var/run/ss-loop.sock"  /* the directory must exist before v2ray starts */
    }
  },
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": [
          "wsdoko"
        ],
        "outboundTag": "ssmux"
      },
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  }
}

你好,我服务端用的nginx+v2ray,按照你的配置,PC客户端用shadowsocks+v2ray-plugin连接没有问题

但是Android端从GooglePlay上安装的shadowsocks+v2ray-plugin连不通(安卓端设置是按照PC端对照着设置的,模式选的websocket+tls,path也跟pc端设置的一样的)。目前现象就是安卓端ss点击连接后,提示“已连接,点击测试连接”,点击一下,ss就开始测试,显示“测试中”,等一会就提示“无互联网连接”。

安卓端连接的话,是否还有什么需要注意的?感谢

@xianren78
Copy link

xianren78 commented Jul 20, 2019 via email

@MxdStudio
Copy link

MxdStudio commented Jul 21, 2019

印象中有个人也有这个问题,后来服务端证书改用fullchain解决了。自己测试一下。

估计应该是这个问题。

其实昨天我也怀疑是这个问题。起因是我用手机上的浏览器访问了一下地址,想看看访问日志。安卓用chrome的时候正常,安卓用firefox访问的时候,提示“此连接不受信任”,搜了一下,很多讨论都说是因为没有包含中间证书,需要改用fullchain。

看了你的回复,我更肯定一些了,我估计大概率就是这个问题。等我回头试一下,把结果反馈上来。

再次感谢你回复,对确定问题很有用👍

@MxdStudio
Copy link

印象中有个人也有这个问题,后来服务端证书改用fullchain解决了。自己测试一下。

估计应该是这个问题。

其实昨天我也怀疑是这个问题。起因是我用手机上的浏览器访问了一下地址,想看看访问日志。安卓用chrome的时候正常,安卓用firefox访问的时候,提示“此连接不受信任”,搜了一下,很多讨论都说是因为没有包含中间证书,需要改用fullchain。

看了你的回复,我更肯定一些了,我估计大概率就是这个问题。等我回头试一下,把结果反馈上来。

再次感谢你回复,对确定问题很有用👍

经测试,就是因为缺少中间证书,导致证书不受信任。换成fullchain就OK了,android端可以连接了。
问题解决

@Amaterasu33
Copy link

Amaterasu33 commented Sep 18, 2019

可以看下你完整的json么?

配合caddy或者ngnix,共用443端口,本配置完全参考了@lcdtyph的样例文件。

{
  "log": {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "port": "10001",        /* this is the server port for client */
      "listen": "127.0.0.1",
      "protocol": "dokodemo-door",
      "tag": "wsdoko",
      "settings": {
        "address": "v1.mux.cool",   /* don't change!!! */
        "followRedirect": false,
        "network": "tcp"
      },
      "streamSettings": {
        "network": "ws",      /* same as v2ray-plugin */
        "wsSettings": {
          "path": "/shadow"
        }
      }
    },
    {
      "port": 9015,   /* this port is not used, but you need to specific */
      "protocol": "shadowsocks",
      "settings": {
        "method": "chacha20-ietf-poly1305",
        "ota": false,
        "password": "mypass",
        "network": "tcp,udp"
      },
      "streamSettings": {
        "network": "domainsocket"
      }
    },
    {
		"port": 10000,
		"listen": "127.0.0.1",
		"protocol": "vmess",
		"tag": "proxy",
		"settings": {
			"clients": [{
				"id": "your uuid",
				"alterId": 64
			}]
		},
		"streamSettings": {
			"network": "ws",
			"wsSettings": {
				"path": "/ray"
			}
		}
	}
  ],
  "outbounds": [
    {
      "protocol": "freedom",
      "settings": {},
      "tag": "direct"
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "blocked"
    },
    {
      "protocol": "freedom",
      "tag": "ssmux",
      "streamSettings": {
        "network": "domainsocket"
      }
    }
  ],
  "transport": {
    "dsSettings": {
      "path": "/var/run/ss-loop.sock"  /* the directory must exist before v2ray starts */
    }
  },
  "routing": {
    "rules": [
      {
        "type": "field",
        "inboundTag": [
          "wsdoko"
        ],
        "outboundTag": "ssmux"
      },
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "blocked"
      }
    ]
  }
}

因为ss那边分离出了插件层,所以协议结构和v2这边不太一样。

如果想用 v2做server, ss over v2做客户端的话需要在server

  • 设置一个任意门(tag:ws-in),地址设置为 v1.mux.cool,传输协议设置websocket
  • 设置一个ss inbound (tag:ss-loc),传输协议不配置
  • 设置一个freedom outbound (tag: ws-out),redirect到 ss-loc这个inbound
  • 配置路由 ws-in -> ws-out,ss-loc -> 默认freedom

这里有个样例配置

你好,我没有用反代,直接让v2ray服务端处理ws+tls数据,配置文件几乎和示例一样,只是在dokodemo-door的streamSettings里加上了tls相关的设置。但是运行起来之后没法连接,v2ray的日志里有大量的

[Error] [382835537] v2ray.com/core/common/mux: unexpected EOF > v2ray.com/core/common/mux: failed to read metadata > v2ray.com/core/common/mux: invalid metalen 5635

如果不加tls,报错是这样的

[Error] [1953279757] v2ray.com/core/common/mux: unexpected EOF > v2ray.com/core/common/mux: failed to read metadata > v2ray.com/core/common/mux: invalid metalen 18245

不知道是不是我哪里设置的不对?客户端的v2ray-plugin参数应该怎么设置?


update:
配置了caddy反代,文件几乎都一模一样了,还是报18245那个错…

@icpz
Copy link

icpz commented Sep 18, 2019

@Amaterasu33
方便贴完整的配置么,看起来是mux出了问题,dokodemo-door的address一定需要设定成v1.mux.cool

@Amaterasu33
Copy link

Amaterasu33 commented Sep 18, 2019

 {
        "log":{
                "access":"/var/log/v2ray/access.log",
                "error":"/var/log/v2ray/error.log",
                "loglevel":"warning"
        },
  "inbounds": [{
    "port": 10000,
    "listen":"127.0.0.1",
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "xxx",
          "level": 1,
          "alterId": 64
        }
      ]
    },
    "streamSettings":{
            "network":"ws",
            "wsSettings":{
                    "path":"xxx"
            }
    }
  },
  {
          "port":10001,
          "listen":"127.0.0.1",
          "protocol":"dokodemo-door",
          "tag":"wsdoko",
          "settings":{
                  "address":"v1.mux.cool",
                  "follorRedirect":false,
                  "network":"tcp"
          },
          "steramSettings":{
                  "network":"ws",
                  "wsSettings":{
                          "path":"xxxx"
                  }
          }
  },
  {
          "port":10002,
          "protocol":"shadowsocks",
          "settings":{
                  "method":"aes-256-gcm",
                  "ota":false,
                  "password":"xxx",
                  "network":"tcp,udp"
          },
          "streamSettings":{
                  "network":"domainsocket"
          }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  },{
    "protocol": "blackhole",
    "settings": {},
    "tag": "blocked"
  },
  {
          "protocol":"freedom",
          "tag":"ssmux",
          "sreamSettings":{
                  "network":"domainsocket"
          }
  }],
  "transport":{
          "dsSettings":{
                  "path":"/var/run/v2ray/ss-loop.sock"
          }
  },
  "routing": {
    "rules": [
            {
                    "type":"field",
                    "inboundTag":[
                            "wsdoko"
                    ],
                    "outboundTag":"ssmux"
            },
      {
        "type": "field",
        "ip": ["geoip:private"],
        "outboundTag": "blocked"
      }
    ]
  }
}

第一个10000端口的用vmess+caddy反代没有问题,10001端口会出错
@lcdtyph

@icpz
Copy link

icpz commented Sep 18, 2019

@Amaterasu33

  {
          "port":10001,
          "listen":"127.0.0.1",
          "protocol":"dokodemo-door",
          "tag":"wsdoko",
          "settings":{
                  "address":"v1.mux.cool",
                  "follorRedirect":false,
                  "network":"tcp"
          },
          "steramSettings":{
                  "network":"ws",
                  "wsSettings":{
                          "path":"xxxx"
                  }
          }
  },

"steramSettings" -> "streamSettings"

  {
          "protocol":"freedom",
          "tag":"ssmux",
          "sreamSettings":{
                  "network":"domainsocket"
          }
  }],

"sreamSettings" -> "streamSettings"

@Amaterasu33
Copy link

@lcdtyph 好尴尬啊,看了好几遍都没发现。谢谢啦!

@billysingo
Copy link

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。

@c21xdx
Copy link
Author

c21xdx commented Dec 11, 2019

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。

你好,能看看v2ray服务端的json文件和客户端这边SS的配置截图吗?谢谢

@missmuxixi
Copy link

@Amaterasu33

  {
          "port":10001,
          "listen":"127.0.0.1",
          "protocol":"dokodemo-door",
          "tag":"wsdoko",
          "settings":{
                  "address":"v1.mux.cool",
                  "follorRedirect":false,
                  "network":"tcp"
          },
          "steramSettings":{
                  "network":"ws",
                  "wsSettings":{
                          "path":"xxxx"
                  }
          }
  },

"steramSettings" -> "streamSettings"

  {
          "protocol":"freedom",
          "tag":"ssmux",
          "sreamSettings":{
                  "network":"domainsocket"
          }
  }],

"sreamSettings" -> "streamSettings"

why can't i find ss-loop.sock in /var/run

@Amaterasu33
Copy link

@missmuxixi
ss-loop.sock is created automatically when v2ray starts. You just need to make sure the directory exists.

@missmuxixi
Copy link

@missmuxixi
ss-loop.sock is created automatically when v2ray starts. You just need to make sure the directory exists.

Thank you for help,i run it successfully,btw,Can this solution coexist with trojan on the same one server?sometimes,one of them is not works well enough,if we can choose anyone when the other one is weak,maybe feel better

@yicong2007
Copy link

yicong2007 commented Mar 7, 2020

@missmuxixi
ss-loop.sock is created automatically when v2ray starts. You just need to make sure the directory exists.

Thank you for help,i run it successfully,btw,Can this solution coexist with trojan on the same one server?sometimes,one of them is not works well enough,if we can choose anyone when the other one is weak,maybe feel better

I believe the answer is yes. You can use trojan and v2ray and ss+v2ray-plugin in the same server with the same 443 port (with the help of nginx, for example).
Method 1: Let trojan listen to the 443 port. Trojan will handle TLS layer, and sends the HTTP/HTTPS/WS content in it to nginx. Nginx delivers different contents (for example, requests from ss+v2ray-plugin with path /ss, requests from v2ray (vmess) with path /ray, common requests for the Web service, can be delivered to the corresponding port). See #67 of trojan
Method 2: Let nginx listen to the 443 port and configure trojan to use a different (sub)domain name (exposed in the SNI Extension of the TLS requests) with other services. Nginx uses the ngx_stream_ssl_preread_module module to separate trojan requests and delivers them to trojan server behind. See #131 of trojan.
Method 2 is more compatible with other services, but you should expose the domain names to the censorship since the SNI is now clear text (ESNI feature of TLS 1.3 is now in draft). Also note that You should issue certificates for every domain you use with TLS, or use a wildcard certificate for all subdomains.
(BTW: With Method 2, you can even use the same 443 port to forward requests that is NOT REAL TLS but just obfuscated to look like TLS to their server port, as long as the TLS Header it add has SNI Extension. Yes, I am talking about the (now deprecated) simple-obfs plugin of shadowsocks-libev.)

@kid101x
Copy link

kid101x commented Jun 6, 2020

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。

这条应该置顶,已经不再需要像之前那样写一堆了

@MxdStudio
Copy link

MxdStudio commented Jun 8, 2020

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。
这条应该置顶,已经不再需要像之前那样写一堆了

可否分享一下你的服务端和客户端的配置文件或截图,参考一下吗?感谢

@kid101x
Copy link

kid101x commented Jul 6, 2020

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。
这条应该置顶,已经不再需要像之前那样写一堆了

可否分享一下你的服务端和客户端的配置文件或截图,参考一下吗?感谢

就是不需要服务端特殊写了,只要在客户端加 mux=0 就行。

@xianren78
Copy link

xianren78 commented Jul 8, 2020

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。
这条应该置顶,已经不再需要像之前那样写一堆了

可否分享一下你的服务端和客户端的配置文件或截图,参考一下吗?感谢

avatar
然后ss-win里设置mux=0,ss-android v2 plugin里设置concurrent connections为0

@kid101x
Copy link

kid101x commented Jul 9, 2020

v2ray-plugin插件更新1.2之后,在win客户端插件选项里加入mux=0之后可以正常访问v2ray作为服务端的ss+ws了。
这条应该置顶,已经不再需要像之前那样写一堆了

可否分享一下你的服务端和客户端的配置文件或截图,参考一下吗?感谢
服务端就正常写(我用了Nginx所以ws分流简单了点):

{
    "port": 8080,
    "protocol": "shadowsocks",
    "settings": {
        "method": "chacha20-ietf-poly1305", //猜测路由器ARMv7硬解效率稍高
        "password": "router",
        "level": 0,
        "network": "tcp,udp" //不确定效果
    },
    "streamSettings": {
        "network": "ws",
        "wsSettings": {
            "path": "/router"
        }
    },
    "tag": "router"
}

楼上说的对,在客户端配置:
tls;mux=0;mode=websocket;host=www.domain.com(服务器域名,具体看个人nginx设置);path=/router (看服务器设置)

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