mirror of https://github.com/ehang-io/nps
				
				
				
			修正文档说明,避免踩坑
							parent
							
								
									ab648d6f0c
								
							
						
					
					
						commit
						70bde0fe4a
					
				
							
								
								
									
										13
									
								
								docs/faq.md
								
								
								
								
							
							
						
						
									
										13
									
								
								docs/faq.md
								
								
								
								
							| 
						 | 
				
			
			@ -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类型。请按照文档操作(标题上有超链接)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										12
									
								
								docs/use.md
								
								
								
								
							
							
						
						
									
										12
									
								
								docs/use.md
								
								
								
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			@ -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|速度限制,可忽略
 | 
			
		||||
| 
						 | 
				
			
			@ -144,6 +144,7 @@ server_port=9003
 | 
			
		|||
---|---
 | 
			
		||||
mode | httpProxy
 | 
			
		||||
server_port | 在服务端的代理端口
 | 
			
		||||
 | 
			
		||||
#### socks5代理模式
 | 
			
		||||
 | 
			
		||||
```ini
 | 
			
		||||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue