当前位置:网站首页>Frp反向代理部署
Frp反向代理部署
2022-07-25 09:27:00 【虚胖也是壮】
1.软件准备
Linux CentOS7 7.6_1810
链接:https://pan.baidu.com/s/1NV4MjfORIj290Q3scy6iYQ?pwd=pzse
提取码:pzse
本文中frp服务端为公网ip的局域网中的服务器(需要连接外网),frp客户端为openvpn服务端服务器(需要连接外网)
外网端口地址
frp_0.38.0_linux_386.tar.gz Frp部署包
链接:https://pan.baidu.com/s/1EsGnGCT0G99g578RJ1tO-w?pwd=1234
提取码:1234
2.安装步骤
Frp为反向代理软件搭配openvpn可实现内网穿透
服务端部署
将部署包上传至yunwei文件夹

解压文件:tar -xvf frp_0.38.0_linux_386.tar.gz

删除客户端两个文件:
rm -rf frpc
rm -rf frpc.ini
修改frps.ini文件:vim frps.ini
bind_port 服务端端口
dashboard_port server服务端口(web监控页面)
token 客户端需要指向该token值
dashboard_user web监控页面用户
dashboard_pwd web监控页面验证密码
[common]
tcp_mux = false
bind_port = 7000
dashboard_port = 7500
token = 自定义
dashboard_user = admin
dashboard_pwd = 自定义

保存退出即可
启动服务端frp:nohup ./frps -c frps.ini &
查看日志:cat nohup.out

客户端frp部署
将部署包上传至yunwei文件夹

解压文件:tar -xvf frp_0.38.0_linux_386.tar.gz

删除服务端两个文件:
rm -rf frps
rm -rf frps.ini
修改frps.ini文件:vim frpc.ini
server_addr 公网地址
server_port 服务端端口
token 自定义token值
tcp_mux false
type = tcp 协议类型
local_ip 本机IP地址
local_port 1194 本机frp服务的端口号
remote_port = 7001 (本机在服务端开放的端口号)
bandwidth_limit 传输速率/MB(100MB)
use_encryption true
use_compression true

保存退出即可
启动frp服务:nohup ./frpc -c frpc.ini &
查看日志:cat nohup.out

公网路由需要开放:7000 7001 7500端口
openvpn IP地址需要指向 外网端口地址 7001(公网ip 及端口)
Frpweb管理页面:外网端口地址:7500

边栏推荐
猜你喜欢
构建 Dompteur 容器问题小记

DHCP的配置(以华为eNSP为例)

Probabilistic robot learning notes Chapter 2
![[recommended collection] with these learning methods, I joined the world's top 500 - the](/img/95/e34473a1628521d4b07e56877fcff1.png)
[recommended collection] with these learning methods, I joined the world's top 500 - the "fantastic skills and extravagance" in the Internet age

conda 配置深度学习环境 pytorch transformers

拷贝过来老的项目变成web项目

PyTorch 代码模板 (CNN)

Use and principle of rest

About the jar package of slf4j log4j log4j2 used together

CentOs安装redis
随机推荐
Common methods of JS digital thousand bit segmentation
字典树的使用
数论--约数研究
Swing component
Salt FAQs
简易加法计算器
多线程——Runnable接口,龟兔赛跑
Selenium 等待元素出现与等待操作可以执行的条件
第五阶段第一周
oracle 解析同名xml 问题
四舍五入取近似值
Strut2 form label
升级 GLIBC 2.29 checking LD_LIBRARY_PATH variable... contains current directory error 解决方案
史上最全面的UE4 文件操作,打开,读、写,增、删、改、查
Angr(八)——angr_ctf
Leetcode 560 前缀和+哈希表
shortest-unsorted-continuous-subarray
js加密参数定位
Exception handling exception
@Import, conditional and @importresource annotations