当前位置:网站首页>ECS uses FRP to map Apache on the local (win10 / win11) intranet to the extranet
ECS uses FRP to map Apache on the local (win10 / win11) intranet to the extranet
2022-04-21 07:56:00 【Two pumpkin cakes】
Environmental Science :
Aliyun server (Ubuntu operating system ), Local machine ( Virtual machine win11/ The host win10)
frp edition frp_0.38.0_windows_amd64 frp_0.38.0_linux_amd64.tar.gz
First download frp
https://github.com/fatedier/frp/releases

Unzip and configure on
Server side :
1. Create a folder under the server frp
2. take frp_0.38.0_linux_amd64.tar.gz Copied to the frp Folder and unzip
. After decompression, it appears frp_0.38.0_linux_amd64 Folder

3. Go to this folder ( frp_0.38.0_linux_amd64) The configuration frps.ini file
vim frps.ini
Be careful : The server-side operation is frps.ini file , Local end The configuration is frpc.ini
[common]
bind_port = 7000 # Server and native apache ’ Connect ‘ port ,( Customizable )
token = 123 # The password used to connect to this computer ( Customize )
vhost_http_port = 81 # frps monitor http The port of ( Be careful not to use 80,443,3306 And other ports that have been occupied by Alibaba cloud server )
Be careful : The server port will be Alibaba cloud server security group rules as well as Ubuntu operation Systematic A firewall Limited .
Alibaba cloud server's security group rules are configured : The entry direction remains the default , Open all ports in the exit direction that will do .
Ubuntu Firewall configuration :( With 7000,81 Port as an example )
sudo ufw status # View firewall status
sudo ufw allow 7000 # to open up 7000 port
sudo ufw allow 81 # to open up 81 port
sudo ufw reload # service iptables restart , Make the new rules effective
If you use the view firewall command, it displays inactive , You can refer to his blog to configure the firewall Ubuntu Firewall configuration
``
4. open frps service
./frps -c frps.ini # Must be in folder ( frp_0.38.0_linux_amd64) Enter this command to open frps service

Ctrl + c You'll be out of service , Closing the control window will also exit the service . If you want to control the server, you can open another control window
Local end
Decompress and enter , edit frpc.ini file , Note that frpc.ini , The configuration is as follows
[common]
server_addr = 8.142.81.11 # Cloud server public network ip
server_port = 7000 # Set on ECs bind_port
token = 123 # Connect the password
[www] # The name in brackets can be customized
type = http # Do not change
local_ip = 127.0.0.1 # Do not change
local_port = 80 # This machine apache Port used
custom_domains = 8.142.81.11 # Cloud server public network ip Address , Or domain names that have been filed
Start... In this folder cmd Command line window : Input frpc -c frpc.ini
start-up frpc service

Successful launch
windows 11 Next, a safety reminder will pop up , You can click the reminder , Select allow this operation , Exit and enter the start command again
Pay attention to the open configuration of the server port , This is the most problematic place
This connection configuration can only meet the minimum requirements .
If there are questions and mistakes , Welcome to the comment area, Gaga leave a message
版权声明
本文为[Two pumpkin cakes]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210629054483.html
边栏推荐
- Server deployment SVN environment
- The fifth stop is the hometown of Confucius and Mencius ------- the shortest path to the maze
- Why is the primary key matching setting in MySQL showing that I am wrong?
- Actual combat of cloud native kubesphere multi tenant system
- Use of basic components of flutter
- asp.net js 实现动态添加文件上传
- Oracle-SQL脚本记录
- MySQL5. 7 installation and operation manual (centos7)
- OmniPlan工具使用手册
- nodejs链接redis
猜你喜欢
![[Niuke brush question 18] find the longest common substring in two strings a and B](/img/eb/d86b667deca3890259fac999324cd4.png)
[Niuke brush question 18] find the longest common substring in two strings a and B

从零开始学习C语言日记——DAY27扫雷

MySQL5. 7 installation and operation manual (centos7)

IIC bus design ① - IIC communication protocol

leetcode 59. Spiral matrix II

2022-04-20:小团去参加军训,军训快要结束了, 长官想要把大家一排n个人分成m组,然后让每组分别去参加阅兵仪式, 只能选择相邻的人一组,不能随意改变队伍中人的位置, 阅兵仪式上会进行打分,其中

Leetcode title -- 386 Dictionary rank, DFS

Yolov5 5.0调用本地摄像头

IDEA 使用@Autowired注解报红的解决办法

【第31题】创造两只完全相同的宠物
随机推荐
PHP two-dimensional array to one-dimensional array
高可用系统设计
php 二维数组转一维数组
OmniPlan tool user manual
Signals
leetcode 203. Remove linked list elements
Solution to red flag with @ Autowired annotation in idea
Flutter 环境搭建等基础
2022-04-20:小团去参加军训,军训快要结束了, 长官想要把大家一排n个人分成m组,然后让每组分别去参加阅兵仪式, 只能选择相邻的人一组,不能随意改变队伍中人的位置, 阅兵仪式上会进行打分,其中
《C#零基础入门之百识百例》(九十七)线程介绍 -- Thread类 -- 开启线程的几种方式
蓝牙开源协议栈BTstack之1.0 BTstack简介
网关与分布式id
Leetcode 704 · binary search
matlab画散点图
Yolov5 5.0调用本地摄像头
物联网操作系统Zephyr(入门篇)之1.0 Zephyr简介
动态规划--LC474.一和零
[question 31] create two identical pets
Bluetooth Profile Specification之(AVRCP篇)5.1AVCTP的连接和释放
nodejs链接redis