FRP Internal penetrating

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.