Get binary files
https://github.com/fatedier/frp/releases/latest
frpc.ini
mkdir -p /root/.config/frpc
vim /root/.config/frpc/frpc.ini
-----
[common]
server_addr = 104.160.18.56
server_port = 7000
log_file = /var/log/frpc.log
log_level = debug
log_max_days = 3
disable_log_color = false
token = <your-token>
admin_addr = 127.0.0.1
admin_port = 7500
admin_user = <your-username>
admin_pwd = <your-token>
pool_count = 16
# --- SSH Config Start --- #
[router-ssh]
type = tcp
local_ip = 192.168.123.1
local_port = 22
remote_port = 122
# --- SSH Config End --- #
# --- WEB Config Start --- #
[web]
type = http
local_ip = 192.168.123.100
local_port = 80
subdomain = web
# --- WEB Config End --- #
---
frps.ini
mkdir -p /etc/frps
vim /etc/frps/frps.ini
---
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 9080
vhost_https_port = 9443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = <your-dashboard-username>
dashboard_pwd = <your-dashboard-token>
log_file = /var/log/frps.log
log_level = error
log_max_days = 3
disable_log_color = false
detailed_errors_to_client = true
token = <your-token>
allow_ports = 10000-20000,122,180,9980
max_pool_count = 16
subdomain_host = home.your-domain.com
udp_packet_size = 1500
---