https://github.com/fatedier/frp上下载最新版frp.
# vi frps.ini
[common]
bind_addr = 0.0.0.0
bind_port = 7000
bind_udp_port = 7001
vhost_http_port = 80
vhost_https_port = 443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
token = mytokenpass
log_file = /tmp/frp/frps.log
subdomain_host = nanomat.top
nohup ./frps -c ./frps.ini &
# vi frpc.ini
[common]
server_addr = 0.0.0.0
server_port = 7000
log_file = /tmp/frp/frpc.log
token = mytokenpass
admin_port = 7400
admin_user = admin
admin_passwd = admin
user = ywmu
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6001
use_encryption = true
use_compression = true
[web01]
type = http
local_ip = 127.0.0.1
local_port = 80
use_encryption = true
use_compression = true
http_user = admin
http_pwd = admin
subdomain = web01
[web02]
type = https
local_ip = 127.0.0.1
local_port = 443
use_encryption = true
use_compression = true
subdomain = web02
[plugin_http_proxy]
type = tcp
remote_port = 6004
plugin = http_proxy
http_user = admin
http_pwd = admin
[plugin_socks5]
type = tcp
remote_port = 6005
plugin = socks5
plugin_user = abc
plugin_passwd = abc
[dns]
type = udp
local_ip = 8.8.8.8
local_port = 53
remote_port = 6002
nohup ./frpc -c ./frpc.ini &