1.部署NPS
docker run -d --name nps --net=host -v /data/nps/conf:/conf ffdfgdfg/nps:v0.26.10服务端配置文件nps.conf 主要配置项
##bridge 
bridge_type=tcp
bridge_port=15081
bridge_ip=0.0.0.0
#web
web_host=xxx.xxx.xxx
web_username=admin
web_password=123
web_port = 15080
web_ip=0.0.0.0
web_base_url=
web_open_ssl=false
web_cert_file=conf/server.pem
web_key_file=conf/server.key参数说明
名称  | 含义  | 
web_port  | web管理端口  | 
web_password  | web界面管理密码  | 
web_username  | web界面管理账号  | 
web_base_url  | web管理主路径,用于将web管理置于代理子路径后面  | 
bridge_port  | 服务端客户端通信端口  | 
https_proxy_port  | 域名代理https代理监听端口  | 
http_proxy_port  | 域名代理http代理监听端口  | 
auth_key  | web api密钥  | 
bridge_type  | 客户端与服务端连接方式kcp或tcp  | 
public_vkey  | 客户端以配置文件模式启动时的密钥,设置为空表示关闭客户端配置文件连接模式  | 
ip_limit  | 是否限制ip访问,true或false或忽略  | 
flow_store_interval  | 服务端流量数据持久化间隔,单位分钟,忽略表示不持久化  | 
log_level  | 日志输出级别  | 
auth_crypt_key  | 获取服务端authKey时的aes加密密钥,16位  | 
p2p_ip  | 服务端Ip,使用p2p模式必填  | 
p2p_port  | p2p模式开启的udp端口  | 
pprof_ip  | debug pprof 服务端ip  | 
pprof_port  | debug pprof 端口  | 
disconnect_timeout  | 客户端连接超时,单位 5s,默认值 60,即 300s = 5mins  | 
2.部署NPC
docker run -d --name npc --net=host -v /data/npc/conf:/conf ffdfgdfg/npc:v0.26.10 -c  config=/conf/npc.conf客户端配置文件npc.conf主要配置项
[common]
server_addr=192.168.xx.xx:15081
conn_type=tcp
vkey=admin
auto_reconnection=true
max_conn=1000
flow_limit=1000
rate_limit=1000
basic_username=admin
basic_password=admin
web_username=user
web_password=1234
crypt=true
compress=true
#pprof_addr=0.0.0.0:9999
disconnect_timeout=60
[socks5]
mode=socks5
server_port=15089
multi_account=conf/multi_account.conf  
##官方文档multi_account默认配置没有上层目录conf,导致配置不生效参数说明
项  | 含义  | 
server_addr  | 服务端ip/域名:port  | 
conn_type  | 与服务端通信模式(tcp或kcp)  | 
vkey  | 服务端配置文件中的密钥(非web)  | 
username  | socks5或http(s)密码保护用户名(可忽略)  | 
password  | socks5或http(s)密码保护密码(可忽略)  | 
compress  | 是否压缩传输(true或false或忽略)  | 
crypt  | 是否加密传输(true或false或忽略)  | 
rate_limit  | 速度限制,可忽略  | 
flow_limit  | 流量限制,可忽略  | 
remark  | 客户端备注,可忽略  | 
max_conn  | 最大连接数,可忽略  | 
pprof_addr  | debug pprof ip:port  | 
server_port  | 在服务端的代理端口  | 
multi_account  | socks5多账号配置文件(可选),配置后使用basic_username和basic_password无法通过认证  | 
3.Proxifiler配置
socks5认证用户和密码由于配置了multi_account.conf,所以认证信息为multi_account.conf中的配置

4.通过web配置其他代理模式
使用nps中配置的IP+PORT访问web界面

官方参考文档:
Document (ehang-io.github.io)










