Frp

frp helps you expose your service behind a firewall or NAT to the public internet.

CentOS 8

Install

$ sudo wget https://github.com/fatedier/frp/releases/download/v0.33.0/frp_0.33.0_linux_amd64.tar.gz
$ sudo cd frp_0.33.0_linux_amd64/
$ sudo cp ./systemd/frps@.service /etc/systemd/system/

Configure

$ sudo vim /etc/systemd/system/frps.service
ExecStart=/usr/local/bin/frps -c /etc/frp/%i.ini
$ sudo cp ./frps /usr/local/bin/
$ sudo mkdir /etc/frp
$ sudo cp ./frps.ini /etc/frp/

Start & stop

$ sudo systemctl daemon-reload
$ sudo systemctl enable frps
$ sudo systemctl start frps

Notes

$ sudo vi /etc/frp/%i.ini

Windwos

PowerShell(Admin) & Command Prompt(Admin)

> frps -c frps.ini
> ./frps.exe -c frps.ini
> nohup ./frps -c ./frps.ini &
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus