当前位置:网站首页>FRP intranet penetration service usage
FRP intranet penetration service usage
2022-07-24 05:07:00 【Axe Lake lazy guest】
One 、frp Intranet through
1,frp brief introduction
frp It is a high performance reverse proxy application focusing on Intranet penetration , Support TCP、UDP、HTTP、HTTPS Other protocols . You can make intranet services secure 、 Convenient way through the public network IP Node transfer is exposed to the public network .
What can you do with intranet penetration ?
- Remote access to Intranet http/https service
- Remote desktop (Windows/Mac)
- Remote files 、 SSH
- Applet development
With intranet penetration, you can access your home computer from outside 、NAS、 Raspberry pie 、 Remote control devices such as webcam , That's nothing ~
frp It is an open source intranet penetration Application , There are client software and server software , The general working process is as follows :
The server is running on a public network IP On , such as Linux On , And listen to a port , Wait for the client to connect .
The client runs on the intranet machine that needs to penetrate , For example, on the local computer , After connecting to the server , The server starts listening to the specified port that the client needs to penetrate .
The specified port that the Internet user connects to the server to listen on , Then the server forwards the user data to the intranet client , Achieve intranet penetration
frp working principle
Server operation , Listen to a primary port , Waiting for the client to connect ;
The client connects to the main port of the server , At the same time, tell the server the port to listen on and the forwarding type ;
Server side fork The new process listens to the port specified by the client ;
Internet users connect to the port specified by the client , The server forwards the data to the client through the connection with the client ;
The client process then forwards the data to the local service , So as to realize the ability of exposing services from the intranet .
The original simple explanation
The server and client agree to pass 7000 Port communication , The client tells the server to listen 6000 port ( Client configured remote_port =6000), Then the Internet server will listen for connection requests : Internet server Ip Address :6000, If so, connect to the client , In this way, the purpose of Intranet penetration can be achieved .
2,frp download
Prepare an Alibaba cloud server , Ready to install frp Server side
Download address :https://github.com/fatedier/frp/releases

2, decompression
Will download Linux Upload the compressed package to the server and decompress .
tar -xvf frp_0.38.0_linux_amd64.tar.gz
Directory structure after decompression
Here you can choose to delete the programs and configurations that the client does not have , It can also not be deleted
rm -f frpc*

3, Server configuration
Edit the server configuration file frps.ini
vi frps.ini
[common] # You have to configure
bind_port = 7000 # It's set by myself frp Server port
# Just set the above port , Don't worry about the following configuration information , For reference
token = 123 # Set the password , For the sake of safety
vhost_http_port = 7080 # It's set by myself http Access port
dashboard_port = 7010 # The server web Management port
dashboard_user = yang # The server web Interface user name
dashboard_pwd = 123456 # Server side web Interface password
[ssh] # ssh Reverse proxy ( It's not necessary to set )
listen_port = 6000 # It's set by myself ssh Access port
[web] # http Reverse proxy [] You can set the content in the , But the client and server must correspond ( Such as [aaa],[bbb]);
type = http # For the service type , It can be set to http,https
custom_domains = test1.a.com # For the domain name to map , Remember the domain name A Record the... To be resolved to the external host IP
[web2] # ditto ( Multiple can be set )
Start server
./frpc -c ./frpc.ini
# Background start
nohup ./frpc -c ./frpc.ini &
4, Client configuration
My client here is my own local computer
Decompress on your local computer Windows Version of frp, Modify the client configuration file frpc.ini
[common]
# long-range frp Server side ip
server_addr = 39.xxx.xxx.xxx
# long-range frp Server port
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000 # The port to be monitored by the Internet server
The computer black window starts frp.exe
frpc.exe -c frpc.ini

After the client starts ,Linux The server also displays information 
边栏推荐
- How can I open and view the bin file? Diagram of reading method of bin file backed up by router
- Problems and solutions of QT (online installation package) crash in win10 installation
- Journey of little black leetcode: 590. Post order traversal of n-ary tree
- C. Recover an RBS (parenthesis sequence, thinking)
- What is the sandbox technology in the data anti disclosure scheme?
- 节都需能有问题制端口, 第一个下标 。很多机器成
- LabVIEW master VI freeze pending
- Sword finger offer special assault edition day 7
- All sections need to be able to have a problem system port, the first subscript. Many machines become
- 。单类型数字传感一个应用程.0。 Up- 开址在出厂
猜你喜欢

HCIA NAT experiment

Chiitoitsu(期望dp)

Jiang Xingqun, senior vice president of BOE: aiot technology enables enterprise IOT transformation

MGRE and OSPF comprehensive experiment

postgresql:在Docker中运行PostgreSQL + pgAdmin 4

frp内网穿透服务使用

High performance architecture design of wechat circle of friends

Uniapp learning

Event extraction and documentation (2019)
![[Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket](/img/60/23fc79cf0e399265b4bd75159ad4d1.png)
[Huang ah code] Introduction to MySQL - 3. I use select *, and the boss directly rushed me home by train, but I still bought a station ticket
随机推荐
Image to image translation with conditional advantageous networks paper notes
How to set up an internal wiki for your enterprise?
Activation functions and the 10 most commonly used activation functions
Question 146: LRU cache
All sections need to be able to have a problem system port, the first subscript. Many machines become
Kingbase v8r6 cluster installation and deployment case - script online one click capacity reduction
XML schema
Print leap years between 1000 and 2000
MS simulated written test
Infineon launched the world's first TPM security chip with post quantum encryption technology for firmware update
[machine learning] - [traditional classification problem] - naive Bayesian classification + logistic regression classification
What if the computer time is often inaccurate? Set up tutorials to automatically update and proofread computer time
排序——QuickSort
Chapter 9 using image data
Yolov7 -- brief introduction of the paper
微信朋友圈的高性能架构设计
The difference between statement and Preparedstatement and how to use placeholders
Sword finger offer special assault edition day 7
Drools 开发决策表
打印1000年到2000年之间的闰年