FRP Fast Reverse Proxy - Basics
Introduction
frp is a fast reverse proxy that allows you to expose a local server located behind a NAT or firewall to the Internet. It currently supports TCP and UDP, as well as HTTP and HTTPS protocols, enabling requests to be forwarded to internal services via domain name. frp also offers a P2P connect mode.
Installation
Download
https://github.com/fatedier/frp/releases
On Server Side
Modify frps.toml on server A by setting the bindPort for frp clients to connect to:
# frps.toml
bindPort = 7000
Start
./frps -c ./frps.toml
On Client Side
# frpc.toml
serverAddr = "x.x.x.x"
serverPort = 7000
[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
Start
./frpc -c ./frpc.toml
Reference
https://github.com/fatedier/frp