Deploying FRP Forwarding¶
This type of port forwarding program is only recommended for use on Linux-type systems. Before starting, please open firewall port 6009/tcp. Please modify the configuration according to your own needs. Now, please appropriately modify the following template configuration and save it to the ~/frps.ini file on the server.
[common]
bind_addr = 0.0.0.0
bind_port = 6009
token = lamda
use_encryption = true
tls_enable = true
allow_ports = 2000-5000
authentication_timeout = 60
proxy_bind_addr = 127.0.0.1
max_pool_count = 15
Starting the FRPS Service¶
Execute the following script to download and start the frps server.
export VERSION=0.52.0
export PLAT=linux_amd64
export DOWNLOADURL=https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_${PLAT}.tar.gz
wget ${DOWNLOADURL} -O - | tar -xz
cd frp_${VERSION}_${PLAT}/frps
./frps -c ~/frps.ini
Configuring FIRERPA¶
After completing the service startup, write and save the following configuration to the /data/usr/properties.local file on the device. After completion, restart the device or restart FIRERPA, and the service will automatically forward its own service port to the port configured on that server.
fwd.host=YourServerIP
fwd.port=6009
fwd.rport=0
fwd.token=lamda
fwd.protocol=tcp
fwd.enable=true
Tip
The Distributed Deployment chapter also has related deployment tutorials, which you can also use for reference.