Use FRP to send raspberries from home networks to the Internet to be accessed on the Internet. Here I use the arm version of the FRP, first to the http://diannaobos.com/frp/will need to download the FRP version back. After downloading
#解压缩
TAR-ZXVF frp_0.14.0_linux_arm.tar.gz
#文件夹里面 Frps is used on the server side, FRPC is used by the client, only the client is used here
Modify configuration file Frpc.ini:
[Common]
SERVER_ADDR =xxxxxx #服务器域名或IP地址
Server_port = 7000
Privilege_token=xxxxxx #连接密码
[Zjy_ssh]
Type = TCP
Privilege_mode=true
Local_ip =192.168.31.88
Local_port = 2222
Remote_port = 53721
Then write the startup script Startfrpc, pay attention to modify your own path, where the delay 20s boot, is to add to the back of the system automatically start
#!/bin/bash
Sleep 20s
Nohup/home/pi/frp/frp_0.14.0_linux_arm/frpc-c/home/pi/frp/frp_0.14.0_linux_arm/frpc.ini >/dev/null 2>& 1 &
Copy the script to the/etc/init.d/
CP STARTFRPC/ETC/INIT.D
Add the script to boot, the larger the 99 number, the later the startup, the more network service is required than 95
sudo update-rc.d startfrpc defaults 99
And then restart the raspberry pie. Wait a while to see if you start Frpc