Operations 4 min read

Expose Local Services Securely with FRP: A Step‑by‑Step Guide

FRP (Fast Reverse Proxy) lets you bypass NAT and firewall restrictions to expose internal services to the internet using a few configuration lines, offering multi‑protocol support, authentication, bandwidth control, and a web dashboard for easy management.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Expose Local Services Securely with FRP: A Step‑by‑Step Guide

FRP (Fast Reverse Proxy) is an open‑source tool that enables you to expose local services—such as web applications or databases—behind NAT or firewalls to the public internet without needing a public IP address.

Key Features

Supports TCP, UDP, HTTP, HTTPS and newer protocols like QUIC and KCP.

Custom domain binding and SSL encryption for secure access.

Token and OIDC client authentication mechanisms.

Web‑based dashboard for monitoring and managing proxies.

Bandwidth control and load‑balancing to prevent overload.

Installation Guide

Download FRP

# Download server and client binaries
wget https://github.com/fatedier/frp/releases/download/v0.62.1/frp_0.62.1_linux_amd64.tar.gz
 tar -zxvf frp_0.62.1_linux_amd64.tar.gz
cd frp_0.62.1_linux_amd64

Run the server (public machine)

Edit frps.toml:

bindPort = 7000
vhostHTTPPort = 8080

Start the server: ./frps -c frps.toml Configure the client (internal machine)

Edit frpc.toml:

serverAddr = "YOUR_PUBLIC_IP"
serverPort = 7000
[proxies]
name = "web"
type = "http"
localPort = 8080
customDomains = ["yourdomain.com"]

Start the client: ./frpc -c frpc.toml Test access

From any internet location, open http://yourdomain.com:8080 to reach the internal service.

FRP solves the lack of public IP and NAT traversal problems, making it a free, lightweight solution for developers, DevOps engineers, or small teams needing quick, secure exposure of internal services.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

DevOpsreverse proxyNetworkingTutorialfrpnat traversal
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.