该介绍目前仅提供英文版本。
frp: Fast Reverse Proxy
frp is a powerful tunneling tool that allows you to expose servers from a local network to the public internet. As a popular tool in the Cloudflare ecosystem, it has garnered over 73,000 GitHub stars.
Core Features
- Multiple Protocol Support: TCP, UDP, HTTP, HTTPS, and more
- Flexible Deployment: Client-server architecture for easy setup
- Security Options: TLS encryption, various authentication methods, and access control
- Port Multiplexing: Share a single port across multiple services
- P2P Mode: Direct connections between clients for improved performance
- Web Interface: Monitor and manage proxies through a web dashboard
- Plugin System: Extend functionality through custom plugins
Common Use Cases
- Exposing local development servers for testing or demonstrations
- Accessing home network services from anywhere
- Providing public internet access to IoT devices
- Creating secure tunnels for remote access to internal resources
- Building hybrid network architectures across multiple environments
Quick Start
frp consists of two components:
- frps (server): Deployed on a machine with a public IP address
- frpc (client): Run on the local machine hosting the services you want to expose
Basic configuration example to expose a local web server:
# frps.toml (server)
bindPort = 7000
vhostHTTPPort = 80
# frpc.toml (client)
serverAddr = "your-frps-server-ip"
serverPort = 7000
[[proxies]]
name = "web"
type = "http"
localPort = 8080
customDomains = ["your-domain.com"]