frp pairs a public-facing frps server with frpc clients to expose TCP, UDP, HTTP, and HTTPS services behind NAT or firewalls, including P2P connect mode.
Overview
frp is a reverse proxy that forwards traffic from the public internet to services running on private networks. A frps process listens on a machine with a reachable address while frpc runs on an internal host and registers tunnels back to the server.
Supported protocols include TCP and UDP, plus HTTP and HTTPS forwarding by domain name. Documented patterns cover SSH access into LAN machines, sharing one port across multiple SSH endpoints, publishing internal web apps with custom domains, DNS forwarding, Unix socket exposure, simple HTTP file sharing, and HTTPS in front of local services.
Additional modes include STCP for access that requires a preshared secret key and xtcp for peer-oriented data transfer where a frps instance still coordinates connections. Configuration can be expressed in TOML, YAML, or JSON, with environment variable substitution, split config files, dashboards for server and client admin UI, token or OIDC authentication, TLS, compression, bandwidth limits, load balancing, health checks, Prometheus metrics, plugins, and an SSH tunnel gateway.
Operators download frps and frpc binaries for their platform, place server settings on the public host and client settings on the private host, then start each binary with its configuration file.
Key features
- TCP UDP HTTP HTTPS tunneling
- frps and frpc server-client model
- Custom domain HTTP publishing
- STCP and xtcp access modes
- Token and OIDC authentication
- Server and client dashboards
- Prometheus monitoring support
- Client and server plugins
Use cases
- SSH into LAN hosts remotely
- Expose internal web apps for testing
- Share one public port for many services
- Publish files from a private network
- Private service access with secret keys