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

补充socks5的multi_account不生效可能原因,避免重复踩坑 #1008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@
```
服务端默认配置启用了8024,8080,80,443端口,端口冲突无法启动,请修改配置
```

- 服务端配置文件修改无效
```
install 之后,Linux 配置文件在 /etc/nps
```

- 客户端无法连接服务端
```
请检查配置文件中的所有端口是否在安全组,防火墙放行
请检查vkey是否对应
请检查版本是否对应
```
- 服务端配置文件修改无效

- 客户端隧道端口连不上
```
install 之后,Linux 配置文件在 /etc/nps
当使用docker部署,但不使用`--net=host`网络模式时,隧道端口应该由nps服务暴露,而非npc
nps服务才是代理服务,所以在暴露隧道端口时,虽说是npc隧道建立时配置的代理端口,却只能由nps暴露出去,因为npc为隧道客户端,而非代理服务。
```

- p2p穿透失败 [p2p服务](https://ehang-io.github.io/nps/#/example?id=p2p%e6%9c%8d%e5%8a%a1)
```
双方nat类型都是Symmetric Nat一定不成功,建议先查看nat类型。请按照文档操作(标题上有超链接)
Expand Down
12 changes: 7 additions & 5 deletions docs/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ npc-update.exe update
server_addr=1.1.1.1:8024
conn_type=tcp
vkey=123
username=111
password=222
basic_username=111
basic_password=222
compress=true
crypt=true
rate_limit=10000
Expand All @@ -68,8 +68,8 @@ max_conn=10
server_addr | 服务端ip/域名:port
conn_type | 与服务端通信模式(tcp或kcp)
vkey|服务端配置文件中的密钥(非web)
username|socks5或http(s)密码保护用户名(可忽略)
password|socks5或http(s)密码保护密码(可忽略)
basic_username|socks5或http(s)密码保护用户名(可忽略)
basic_password|socks5或http(s)密码保护密码(可忽略)
compress|是否压缩传输(true或false或忽略)
crypt|是否加密传输(true或false或忽略)
rate_limit|速度限制,可忽略
Expand Down Expand Up @@ -144,6 +144,7 @@ server_port=9003
---|---
mode | httpProxy
server_port | 在服务端的代理端口

#### socks5代理模式

```ini
Expand All @@ -159,7 +160,8 @@ multi_account=multi_account.conf
---|---
mode | socks5
server_port | 在服务端的代理端口
multi_account | socks5多账号配置文件(可选),配置后使用basic_username和basic_password无法通过认证
multi_account | socks5多账号配置文件(可选),配置后使用basic_username和basic_password无法通过认证 <br> multi_account.conf要与可执行文件npc同一目录,或者npc.conf里面写相对路径,conf/multi_account.conf

#### 私密代理模式

```ini
Expand Down