npsは代理を実現して、httpを実現して内網httpポートに代理を要求します.
7411 ワード
npsは代理を実現して、httpを実現して内網httpポートに代理を要求します.
npsは軽量級、高性能、強力なイントラネットプロキシサーバーです.現在はtcp、udpトラフィック転送をサポートしており、どのtcp、udpトッププロトコル(イントラネットサイト、ローカル決済インターフェースのデバッグ、sshアクセス、リモートデスクトップ、イントラネットdns解析など)にも対応しています.また、イントラネットhttpエージェント、イントラネットのsocks 5エージェント、p 2 pなどもサポートしています.
背景:マイクロクレジットの公衆番号の開発、小さいプログラムの開発などをします. 外网でsshを通じて内网を接続したいマシンは、クラウドサーバから内网サーバポートへのマッピングを行います. .非イントラネット環境においてイントラネットdnsを使用するか、またはupを介してイントラネットマシンにアクセスする必要があるなど、――udpプロキシモード 外部ネットワークでHTTPエージェントを使用してイントラネットサイトにアクセスする-->httpエージェントモード 構築したイントラネットがssを貫通し、外部ネットワークでイントラネットのようにイントラネットの資源または設備にアクセスする.socks 5エージェントモード .
関連住所:nps github住所:https://github.com/cnlh/nps
CentOSサーバ端にパッケージをインストールする:https://github.com/cnlh/nps/releases/download/v0.23.2/linux_アルム64_server.tar.gz
Windowsクライアントインストールパッケージ:https://github.com/cnlh/nps/releases/download/v0.23.2/win_amd 64_client.tar.gz
CentOSサーバにnps serverをインストールする
直接解凍linux_アルム64_server.tar.gz
http://localhost:8080
今は訪問が必要です.http://api.example.comイントラネットに代行しますhttp://127.0.0.1:8080ポート
主な流れは以下の通りです.http://api.example.com ->nps server->http://127.0.0.1:8080
http://api.example nps server 8088ポートにnginxエージェントを介して
設定は以下の通りです.default.com nf

Windowsにnps clientをインストールする
直接解凍win_amd 64_client.tar.gz
はnpc.com nfを配置します.
の起動に成功すると、client list idが2であるclient状態がオンラインに変化した状態が見られます.
ドメイン名解析の設定
配置に成功したら、アクセスする.http://api.example.com イントラネットに代行されます.http://localhost:8080ポート
npsは軽量級、高性能、強力なイントラネットプロキシサーバーです.現在はtcp、udpトラフィック転送をサポートしており、どのtcp、udpトッププロトコル(イントラネットサイト、ローカル決済インターフェースのデバッグ、sshアクセス、リモートデスクトップ、イントラネットdns解析など)にも対応しています.また、イントラネットhttpエージェント、イントラネットのsocks 5エージェント、p 2 pなどもサポートしています.
背景:
関連住所:nps github住所:https://github.com/cnlh/nps
CentOSサーバ端にパッケージをインストールする:https://github.com/cnlh/nps/releases/download/v0.23.2/linux_アルム64_server.tar.gz
Windowsクライアントインストールパッケージ:https://github.com/cnlh/nps/releases/download/v0.23.2/win_amd 64_client.tar.gz
CentOSサーバにnps serverをインストールする
直接解凍linux_アルム64_server.tar.gz
tar -zxvf linux_arm64_server.tar.gz
nps.com nfを修正するappname = nps
#Boot mode(dev|pro)
runmode = pro
#HTTP(S) proxy port, no startup if empty
http_proxy_ip=0.0.0.0
http_proxy_port=8088
#https_proxy_port=443
#https_just_proxy=true
#default https certificate setting
#https_default_cert_file=conf/server.pem
#https_default_key_file=conf/server.key
##bridge
bridge_type=tcp
bridge_port=8024
bridge_ip=0.0.0.0
スタートnps server./nps start
nps server管理画面にアクセスhttp://localhost:8080

今は訪問が必要です.http://api.example.comイントラネットに代行しますhttp://127.0.0.1:8080ポート
主な流れは以下の通りです.http://api.example.com ->nps server->http://127.0.0.1:8080
http://api.example nps server 8088ポートにnginxエージェントを介して
設定は以下の通りです.default.com nf
server {
listen 80;
listen 443 ssl;
server_name api.example.com;
include /etc/nginx/common/example.com.ssl.conf;
location / {
proxy_pass http://localhost:8088;
}
if ($scheme != 'https') {
rewrite ^(.*)$ https://$server_name$1 permanent;
}
}
example.com.ssl.com.com.ssl_certificate cert/example.com/fullchain.cer;
ssl_certificate_key cert/example.com/example.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
nps server web管理バックグラウンドでクライアントを作成します.

Windowsにnps clientをインストールする
直接解凍win_amd 64_client.tar.gz

[common]
server_addr=[nps server IP]:8024
conn_type=tcp
vkey=[ vkey]
auto_reconnection=true
max_conn=1000
flow_limit=1000
rate_limit=1000
basic_username=11
basic_password=3
web_username=user
web_password=1234
crypt=true
compress=true
クライアントnps-config=conf/npc.com 
ドメイン名解析の設定
