frp reverse proxy

Posted wemux

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

curl https://xx.xx.xx.xx:8443

以上是关于frp reverse proxy的主要内容,如果未能解决你的问题,请参考以下文章

reverse proxy and forward proxy

Reverse Proxy Vs Forward Proxy

Forward Proxy vs Reverse Proxy

ProxyPass、Proxy Reverse 或 AJP

Nginx reverse proxy NSQAdmin

Apache的reverse proxy设定