当前位置:网站首页>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

边栏推荐
猜你喜欢
![[nearly 10000 words dry goods] don't let your resume don't match your talent -- teach you to make the most suitable resume by hand](/img/2d/e3a326175f04826b9d9c96baedc3a5.png)
[nearly 10000 words dry goods] don't let your resume don't match your talent -- teach you to make the most suitable resume by hand

conda 配置深度学习环境 pytorch transformers

VoxCeleb1 数据集下载

Angr(七)——angr_ctf

升级 GLIBC 2.29 checking LD_LIBRARY_PATH variable... contains current directory error 解决方案

UE4源码的获取和编译

链表相关(设计链表及环链表问题)

Use of dictionary tree

Duplicate SSL_ Anti spoofing, spoofing attacks and deep forgery detection using wav2vec 2.0 and data enhanced automatic speaker authentication

拷贝过来老的项目变成web项目
随机推荐
GUI window
[nearly 10000 words dry goods] don't let your resume don't match your talent -- teach you to make the most suitable resume by hand
数论---最大公约数最小公倍数
Multithreading deadlock and synchronized
线程池的死锁事件
Vant problem record
ES6 detailed explanation
emmet语法速查 syntax基本语法部分
IO流中的输出流
DHCP的配置(以华为eNSP为例)
复现 SSL_Anti-spoofing, 使用 wav2vec 2.0 和数据增强的自动说话人认证的欺骗攻击与深度伪造检测
Basic knapsack problem
Trojaning Attack on Neural Networks 论文阅读笔记
cookie and session
1、 Initial mysql, MySQL installation, environment configuration, initialization
Round to the nearest
Pytorch 通过 Tensor 某一维的值将 Tensor 分开的方法(简易)
RedisUtil
[recommended collection] with these learning methods, I joined the world's top 500 - the "fantastic skills and extravagance" in the Internet age
Bug分类和定级