nps
免費,nps 的優勢在於有一套官方提供的web管理端。
service端在雲上搭建。
ip:8080 登陸service,賬號:admin 密碼:123
client端搭建在內網機器上。
startClient.sh
#!/bin/bash
nohup ./npc -server=公網ip:8024 -vkey=唯一驗證密鑰 >> info.log 2>&1 &
echo "啟動成功!!!!"
tail -f -n100 ./info.log
frp
https://github.com/fatedier/frp
免費,缺點是每次增加或修改映射,都需要更改客戶端配置文件,然后重啟服務。
下載地址:
https://github.com/fatedier/frp/releases
https://github.com/fatedier/frp/releases/download/v0.41.0/frp_0.41.0_linux_amd64.tar.gz