frp reverse proxy

博观而约取,厚积而薄发。这篇文章主要讲述frp reverse proxy相关的知识,希望能为你提供帮助。
项目地址:??https://github.com/fatedier/frp??
Server (Public ip)
配置服务端与客户端通讯的端口 frps.ini

wget https://github.com/fatedier/frp/releases/download/v0.41.0/frp_0.41.0_linux_amd64.tar.gz
tar -zxvf frp_0.41.0_linux_amd64.tar.gz
cd frp_0.41.0_linux_amd64/
./frps -c frps.ini


Client (internal)
wget https://github.com/fatedier/frp/releases/download/v0.41.0/frp_0.41.0_linux_amd64.tar.gz
tar -zxvf frp_0.41.0_linux_amd64.tar.gz
cd frp_0.41.0_linux_amd64/

#配置frpc.ini
[common]
server_addr = xx.xx.xx.xx #服务端ip
server_port = 7000 #通讯端口

[jmp_web]
type = tcp
local_ip = 127.0.0.1
local_port = 443
remote_port = 8443

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 8422

./frpc -c frpc.ini


Test case
【frp reverse proxy】curl https://xx.xx.xx.xx:8443

    推荐阅读