When you want to remotely manage your NAS or access services hosted on it from outside your local network, how do you do it? This guide shows how to use the FRP tool to configure remote access to your NAS.
First — you need a public server
You’ll need a public (Internet-facing) server to act as an intermediary. For instructions on installing FRP on a public server, see "FRP 实现内网穿透". After completing those steps, continue with the instructions below.
Run the FRP client on TrueNAS
Start by creating a container. Deploying other applications inside a container on TrueNAS is generally safer and saves you a lot of hassle. A simple Linux container is sufficient.
Download the FRP client and configure it
Open the container’s shell:
Run the following commands to download FRP:
wget https://github.com/fatedier/frp/releases/download/v0.65.0/frp_0.65.0_linux_amd64.tar.gz
# Extract
tar -zxvf frp_0.65.0_linux_amd64.tar.gz
cd frp_0.65.0_linux_amd64
Configure FRP — the official site has detailed configuration examples; here we only show the simplest setup. See: https://gofrp.org/.
Edit the client config:
vim frpc.toml

Make sure the container can reach the services you want to expose.
For example, to access the NAS management panel, test connectivity between the container and the NAS:
# ping nasIP
ping 192.168.1.226

After configuring FRP, start the client:
./frpc -c frpc.toml
Open the FRP web admin interface to verify the connection:
That’s a simple way to access your NAS using FRP. This is only one approach — more public-access methods will be covered in future updates.