FRP 反向代理

服务端,以 ubuntu 为例

编辑 frps.ini 文件:

[common]
bind_port = 7000
vhost_https_port = 443
token = t0ken4c0nnect

创建 /etc/systemd/system/frps.service 文件:

[Unit]
Description=FRP Server
After=network.target

[Service]
ExecStart=/path/to/frps -c /path/to/frps.ini
Restart=on-abort

[Install]
WantedBy=multi-user.target

Enable the service:

$ systemctl enable frps

start / stop / restart / check status:

$ service frps start
$ service frps stop
$ service frps restart
$ service frps status

or run it in console:

$ ./frps -c ./frps.ini

Client-side, win10 for example

Edit the frpc.ini:

[common]
server_addr = your-ip-address
server_port = 7000
token = t0ken4c0nnect

[your.domain.com:port]
type = https
local_port = 443
custom_domains = your.domain.com

Run:

$ ./frpc -c ./frpc.ini

Enjoy it!