客户端配置,端口白名单等

This commit is contained in:
刘河
2019-02-13 03:54:00 +08:00
parent 59d789d253
commit 44d314515b
34 changed files with 1096 additions and 472 deletions

View File

@@ -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

View File

@@ -1 +0,0 @@
1,ydiigrm4ghu7mym1,测试,true,,,0,,0,0
1 1 ydiigrm4ghu7mym1 测试 true 0 0 0
1 ydiigrm4ghu7mym1 测试 true 0 0 0

View File

@@ -1,2 +0,0 @@
a.o.com,127.0.0.1:8080,1,,,测试
b.o.com,127.0.0.1:8082,1,,,
1 a.o.com 127.0.0.1:8080 1 测试
a.o.com 127.0.0.1:8080 1 测试
b.o.com 127.0.0.1:8082 1

33
conf/npc.conf Normal file
View 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

View File

@@ -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
1 53 udpServer 114.114.114.114:53 1 0 0 0 2 1 true udp
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