Pub-IP Server
# git clone https://github.com.cnpmjs.org/fatedier/frp
wget https://github.com/fatedier/frp/releases/download/v0.37.0/frp_0.37.0_linux_amd64.tar.gz
tar -xzvf frp_0.37.0_linux_amd64.tar.gz
cd frp_0.37.0_linux_amd64/
rm -rf frps.ini
echo "# frps.ini
[common]
bind_port = 7000
" >> frps.ini
tmux
./frps -c ./frps.ini
Private Server
Download frp:
wget https://github.com/fatedier/frp/releases/download/v0.37.0/frp_0.37.0_linux_amd64.tar.gz
# or wget https://github.com.cnpmjs.org/fatedier/frp/releases/download/v0.37.0/frp_0.37.0_linux_amd64.tar.gz
tar -xzvf frp_0.37.0_linux_amd64.tar.gz
cd frp_0.37.0_linux_amd64/
Update config file:
# frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
Add to .bashrc
tmux new -s frp
$FRPPWD/frpc -c $FRPPWD/frpc.ini