frp内网穿透
frps内网穿透以及service服务自启
frp 允许是一种快速反向代理,您将位于 NAT 或防火墙网关的本地服务器暴露给 Internet。目前支持TCP和UDP,以及HTTP和HTTPS协议,可以将请求通过域名转发到内部服务
frps服务端配置文件
能用的我基本上都写在这边了
bindPort = 7100
bindAddr = "0.0.0.0"
#虚拟主机端口
vhostHTTPPort = 8888
vhostHTTPSPort = 8443
#web控制器
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "123"
#日志登记和天数
log.to = "./frps.log"
log.level = "info"
log.maxDays = 7
#认证
auth.method = "token"
auth.token = "qwer123"
#订阅的主域名
subDomainHost = "7boe.top"
设置systemd服务控制
最好用官方的
[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /path/to/frps -c /path/to/frps.toml
[Install]
WantedBy = multi-user.target
frpc客户端配置
serverAddr = "127.0.0.1"
serverPort = 7100
#客户端标记名称
user = "Celia"
#认证
auth.token = "qwer123"
auth.method = "token"
#穿透类型
[[proxies]]
name = "sshd"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
[[web]]
name = "web"
type = "http"
localIP = "127.0.0.1"
localPort = 80
#域名加上服务器上的订阅域名
subdomain = "web"
customDomains = ["web.7boe.top"]
[[proxies]]
name = "web02"
type = "https"
localIP = "127.0.0.1"
localPort = 8000
subdomain = "web02"
customDomains = ["web02.7boe.top"]
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果