title: frp内网穿透
categories:
- linux
tags: - linux
abbrlink: 3228035043
date: 2019-10-24 21:45:39
安装
下载最新版的frp
内网配置(通俗讲本地)
修改frp.ini文件
[common]
server_addr = 127.0.0.1 //服务器地址
server_port = 7000 //服务器端监听frps端口
[ssh]
type = tcp
local_ip = 127.0.0.1 //本地ip
local_port = 22 //本地端口
remote_port = 6000 // 转发端口
[common]
[web]
type = http
local_port =8081
custom_domains = www.yundingshuyuan.com
~
启动命令./frpc -c ./ frpc.ini
公网配置(通俗讲服务端)
修改frps.ini
# frps.ini
[common]
bind_port = 7000 //内网frp监听地址
vhost_http_port = 8080 // 服务端访问地址
启动命令./frps -c ./ frps.ini
来源:https://blog.csdn.net/qq_34691097/article/details/102754266