A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. This is the image for frps.
You can pull the image from hub.docker.com
.
$ docker pull bingozb/frps
Or, you can build with source repository by yourself.
$ git clone https://github.com/bingozb/docker-frps.git
$ cd docker-frps
$ docker build -t bingozb/frps .
You can run a frps container with default config.
$ sudo docker run --restart always -d \
--name frps \
-p 10080:10080 -p 7000:7000 -p 7500:7500 \
bingozb/frps
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 10080
dashboard_port = 7500
dashboard_user = deploy
dashboard_pwd = 01234567a
auth_token = 01234567a
privilege_mode = true
privilege_token = 01234567a
Privilege mode is the default. All proxy configurations are set in client. See here for more information about privilege_mode: https://github.com/bingozb/frp#privilege-mode
If you want to modify configuration, you can volume your own frps.ini
via tag -v
.
$ docker run --restart always -d \
--name frps \
-p 10080:10080 -p 7000:7000 -p 7500:7500 \
-v /path/to/frps.ini:/frps.ini \
bingozb/frps
Finally, check the iptables config and make sure that the firewall is not blocking the required ports. You can access http://127.0.0.1:7500
to check frp's status and proxies's statistics information by dashboard.