forked from ehang-io/nps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
刘河
committed
Feb 3, 2019
1 parent
73c297d
commit cbdad1a
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,7 +165,7 @@ httpProxyPort | http代理监听端口 | |
- 内网客户端运行 | ||
|
||
``` | ||
./npc server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
./npc -server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
``` | ||
现在访问(http|https://)a.proxy.com,b.proxy.com即可成功 | ||
|
||
|
@@ -183,7 +183,7 @@ httpProxyPort | http代理监听端口 | |
- 在客户端管理中创建一个客户端,记录下验证密钥 | ||
- -内网客户端运行 | ||
``` | ||
./npc server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
./npc -server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
``` | ||
- 在该客户端隧道管理中添加一条tcp隧道,填写监听的端口(8001)、内网目标ip和目标端口(10.1.50.101:22),选择压缩方式,保存。 | ||
- 访问公网服务器ip(127.0.0.1),填写的监听端口(8001),相当于访问内网ip(10.1.50.101):目标端口(22),例如:ssh -p 8001 [email protected] | ||
|
@@ -201,7 +201,7 @@ httpProxyPort | http代理监听端口 | |
- 在客户端管理中创建一个客户端,记录下验证密钥 | ||
- -内网客户端运行 | ||
``` | ||
./npc server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
./npc -server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
``` | ||
- 在该客户端的隧道管理中添加一条udp隧道,填写监听的端口(53)、内网目标ip和目标端口(10.1.50.102:53),选择压缩方式,保存。 | ||
- 修改本机dns为127.0.0.1,则相当于使用10.1.50.202作为dns服务器 | ||
|
@@ -218,7 +218,7 @@ httpProxyPort | http代理监听端口 | |
- 在客户端管理中创建一个客户端,记录下验证密钥 | ||
- -内网客户端运行 | ||
``` | ||
./npc server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
./npc -server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
``` | ||
- 在该客户端隧道管理中添加一条socks5代理,填写监听的端口(8003),验证用户名和密码自行选择(建议先不填,部分客户端不支持,proxifer支持),选择压缩方式,保存。 | ||
- 在外网环境的本机配置socks5代理,ip为公网服务器ip(127.0.0.1),端口为填写的监听端口(8003),即可畅享内网了 | ||
|
@@ -234,7 +234,7 @@ httpProxyPort | http代理监听端口 | |
- 在客户端管理中创建一个客户端,记录下验证密钥 | ||
- -内网客户端运行 | ||
``` | ||
./npc server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
./npc -server=1.1.1.1:8284 -vkey=客户端的密钥 | ||
``` | ||
- 在该客户端隧道管理中添加一条http代理,填写监听的端口(8004),选择压缩方式,保存。 | ||
- 在外网环境的本机配置http代理,ip为公网服务器ip(127.0.0.1),端口为填写的监听端口(8004),即可访问了 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters