:D 获取中...

1 域名

1.1 域名申请

1.2 免费SSL申请

  1. 登陆阿里云网站
  2. 进入控制台->云盾控制台->证书服务
  3. 购买证书->Symantec->增强型OV SSL->免费型OV SSL->立即0元购买。

2 VPS

2.1 VPS申请

2.2 VPS配置

3 FRP服务

3.1 下载

https://github.com/fatedier/frp上下载最新版frp.

3.2 Server配置

# 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 &

3.3 Client配置

# 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 &