Installing FRP Client (frpc) on Synology NAS — Same for Other Devices

This article is transcoded by 简悦 SimpRead, original article at iliu.org

In May this year, I purchased a Bandwagon VPS, originally intended to be used as a VPS for my blog. It used the optimized route for the US West Coast, and the speed was very ideal. A few days ago, I switched my blog system back to Hugo, so this VPS became available. Also, recently Synology’s QC and tailscale have not been very satisfactory, so I decided to use FRP to penetrate Synology.

In May this year, I purchased a Bandwagon VPS, originally intended to be used as a VPS for my blog. It used the optimized route for the US West Coast, and the speed was very ideal. A few days ago, I switched my blog system back to Hugo, so this VPS became available. Also, recently Synology’s QC and tailscale have not been very satisfactory, so I decided to use FRP to penetrate Synology. After searching, most online tutorials use docker, but I kept getting errors after installation, so I studied and adopted a direct installation method which saves resources and is less prone to errors. This article details how to deploy frpc under the user directory and achieve auto-start on boot.

1. Introduction to FRP

FRP (Fast Reverse Proxy) is a high-performance reverse proxy application that enables NAT traversal. By running frps (server) on a public server and frpc (client) on LAN devices, you can directly access services such as Synology DSM, SSH, etc., inside the LAN from the internet.

2. Prerequisites

A server with a public IP. Here, Lao Liu recommends the US West optimized line of Bandwagon with very ideal speed. After purchasing the server, install the 1panel panel, then search for FRP in the applications and install frps. At this point, the requirements are as follows:

  • Public server IP (frps): 104.***….
  • Authentication token: xxxxx
  • Synology LAN IP: 192.168.3.19
  • Synology login user: xxxxx

Token, port number, etc., can be found in the installed frps application.

3. Installing frpc on Synology

1. Enter the user directory

Placing it in the user directory requires no root permissions and is the safest.

2. Download frpc

x86_64 Synology (Intel/AMD platform)

cd /var/services/homes/xxxxx

ARM64 Synology (J series or low-power NAS)

Unpack and rename:

wget https://ghproxy.net/https://github.com/fatedier/frp/releases/download/v0.61.1/frp_0.61.1_linux_amd64.tar.gz

4. Create configuration file

Write the following content:

Save and exit.

5. Test Run

If you see:

It means the connection is successful.

6. Run in background (optional)

wget https://ghproxy.net/https://github.com/fatedier/frp/releases/download/v0.61.1/frp_0.61.1_linux_arm64.tar.gz

Check logs:

Stop running:

7. Auto start on boot (optional)

  1. DSM → Control Panel → Scheduled Tasks → Create → “Triggered Task” → “User-defined script”
  2. Select user xxxxx or root
  3. Script content:
tar -zxvf frp_0.61.1_linux_amd64.tar.gz
mv frp_0.61.1_linux_amd64 frp
cd frp
  1. Save and check “Run at startup”

8. Verify Connection

Access from Internet:

If SSH tunnel is configured:

You can remotely log in to Synology.

:white_check_mark: Summary

  • All files are placed under the user directory without root permissions
  • Supports automatic running after DSM restart
  • Simple installation, secure permissions, and long-term stability