> For the complete documentation index, see [llms.txt](https://aiastia.gitbook.io/xrayr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aiastia.gitbook.io/xrayr/dui-jie-sspanel/sspanel/dui-jie-shadowsocks-v2rayplugin.md).

# 对接Shadowsocks - V2Ray-Plugin

| 协议                         | 加密方法                                             | 混淆方法                                                         |
| -------------------------- | ------------------------------------------------ | ------------------------------------------------------------ |
| Shadowsocks - V2Ray-Plugin | aes-128-gcm, aes-256-gcm, chacha20-ietf-poly1305 | <p>simple\_obfs\_http,simple\_obfs\_tls,</p><p>ws,ws+tls</p> |

## SSpanel-uim 节点地址格式

```
IP;监听端口;;(ws或obfs);(tls或不填);path=/xxx|host=xxxx.com|server=xxx.com|outside_port=xxx
```

注意监听端口后面有两个分号

## SSpanel-uim 代码修改

SSpanel-uim关于Shadowsocks - V2Ray-Plugin的代码存在部分问题，需要加以修改才能正确下发订阅。

此方法写于 [SSPanel-Uim@822d3c](https://github.com/Anankke/SSPanel-Uim/commit/822d3cbcb3ad8f7e11874a96f05d73e5b016c164)，不保证后续仍然生效。

### 修改方法

打开src\Models\Node.php文件，找到第420行，将其注释。

修改前：

```
$return_array['path'] = ($return_array['path'] . '?redirect=' . $user->getMuMd5());
```

修改后：

```
// $return_array['path'] = ($return_array['path'] . '?redirect=' . $user->getMuMd5());
```

## SSpanel-uim 订阅

SSpanel-uim建议安卓，WIN和Mac使用Clash，IOS使用Shadowrocket获取含有Shadowsocks - V2Ray-Plugin的订阅。

## ws + tls (Nginx) 示例（**推荐**）

交由Caddy或者Nginx处理TLS 节点配置和 ws+tls一致，在后端配置`CertMode: none`

同时设置outside\_port为Nginx监听端口，转发到12345为XrayR监听端口。可以在后端配置`ListenIP: 127.0.0.1`监听本地端口。

```
ip;12345;;ws;tls;path=/xxx|server=域名|host=CDN域名|outside_port=443
```

```
示例：1.3.5.7;12345;;ws;tls;path=/ss|server=hk.domain.com|host=hk.domain.com|outside_port=443
```

## ws+tls示例

```
ip;12345;;ws;tls;path=/xxx|host=xxxx.com|server=xxx.com
```

```
示例：1.3.5.7;12345;;ws;tls;path=/ss|host=hk.domain.com|server=hk.domain.com
```

## ws示例

```
ip;12345;;ws;;path=/xxx|host=xxxx.com|server=xxx.com
```

```
示例：1.3.5.7;12345;;ws;;path=/ss|host=hk.domain.com|server=hk.domain.com
```

## simple\_obfs\_http示例

```
ip;12345;;obfs;http;server=xxx.com
```

```
示例：1.3.5.7;12345;;obfs;http;server=hk.domain.com
```

## simple\_obfs\_tls示例

```
ip;12345;;obfs;tls;server=xxx.com
```

```
示例：1.3.5.7;12345;;obfs;tls;server=hk.domain.com
```

## 中转端口

在任一配置组合后增加`|outside_port=xxx`,此项为用户连接端口。

XrayR没有`inside_port=xx`配置选项，如需监听本地端口，请在配置文件中设置监听ip为`127.0.0.1`。

```
示例：1.3.5.7;12345;;ws;tls;path=/ss|server=hk.domain.com|host=hk.domain.com|outside_port=8888
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aiastia.gitbook.io/xrayr/dui-jie-sspanel/sspanel/dui-jie-shadowsocks-v2rayplugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
