mirror of
https://github.com/ehang-io/nps.git
synced 2025-08-31 09:36:57 +00:00
客户端配置,端口白名单等
This commit is contained in:
@@ -30,4 +30,11 @@ pemPath=/etc/nginx/certificate.crt
|
||||
keyPath=/etc/nginx/private.key
|
||||
|
||||
##Data transmission mode(kcp or tcp)
|
||||
bridgeType=tcp
|
||||
bridgeType=tcp
|
||||
|
||||
# Public password, which clients can use to connect to the server
|
||||
# After the connection, the server will be able to open relevant ports and parse related domain names according to its own configuration file.
|
||||
publicVkey=123
|
||||
|
||||
#Open ports allowed on the server side
|
||||
allowPorts=9001-9009,10001,11000-12000
|
@@ -1 +0,0 @@
|
||||
1,ydiigrm4ghu7mym1,测试,true,,,0,,0,0
|
||||
|
|
@@ -1,2 +0,0 @@
|
||||
a.o.com,127.0.0.1:8080,1,,,测试
|
||||
b.o.com,127.0.0.1:8082,1,,,
|
||||
|
|
33
conf/npc.conf
Normal file
33
conf/npc.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
[common]
|
||||
server=127.0.0.1:8284
|
||||
tp=tcp
|
||||
vkey=123
|
||||
username=111
|
||||
password=222
|
||||
compress=snappy
|
||||
crypt=true
|
||||
auto_reconnection=true
|
||||
[web1]
|
||||
host=a.o.com
|
||||
host_change=www.sina.com
|
||||
target=127.0.0.1:8080,127.0.0.1:8082
|
||||
header_cookkile=122123
|
||||
header_user-Agent=122123
|
||||
[web2]
|
||||
host=www.baidu.com
|
||||
host_change=www.sina.com
|
||||
target=127.0.0.1:8080,127.0.0.1:8082
|
||||
header_cookkile="122123"
|
||||
header_user-Agent=122123
|
||||
[tunnel1]
|
||||
mode=udpServer
|
||||
target=127.0.0.1:8080
|
||||
port=9001
|
||||
[tunnel2]
|
||||
mode=tunnelServer
|
||||
target=127.0.0.1:8080
|
||||
port=9001
|
||||
[tunnel3]
|
||||
mode=tunnelServer
|
||||
target=127.0.0.1:8080
|
||||
port=9002
|
@@ -1,4 +0,0 @@
|
||||
53,udpServer,114.114.114.114:53,,,,1,0,0,0,2,1,true,udp
|
||||
9005,httpProxyServer,,,,,1,0,0,0,4,1,true,
|
||||
9002,socks5Server,,,,,1,0,0,0,3,1,true,socks5
|
||||
9001,tunnelServer,127.0.0.1:8082,,,,1,0,0,0,1,1,true,测试tcp
|
||||
|
|
Reference in New Issue
Block a user