matbgn / frps-docker

[Outside server part]: A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fast Reverse Proxy Server Part

Usage

1° Change environment variable in Dockerfile to correct number
ENV FRP_VERSION 0.33.0
2° Build the Dockerfile by changing $FRP_VERSION with proper number e.g. 0.33.0
docker build --tag frps:${FRP_VERSION} .
3° Run the new instance by changing $FRP_VERSION with proper number e.g. 0.33.0
docker run -d \
  --network host \
  --name frps \
  --restart=always \
  -v /etc/frp:/conf \
  frps:${FRP_VERSION}
⚠️
You need to specify network as host to enable admin dashboard port opening

Configuration example

# sudo nano /etc/frp/frps.ini
[common]
bind_port = 7000
vhost_http_port = 80
vhost_https_port = 443
token = your_token_same_as_frpc

allow_ports = 7000
max_pool_count = 5

dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
⚠️
You have to open your firewall to allow dashboard + bind_port for client connection
ufw allow 7500
ufw allow 7000
ufw allow 443
ufw allow 80
ℹ️
In order to use https rerouting on local server you have to open 443 port on exposed server

About

[Outside server part]: A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.


Languages

Language:Dockerfile 100.0%