当前位置:网站首页>Intranet penetration based on FRP -- SSH Remote connection to intranet server with the help of public server
Intranet penetration based on FRP -- SSH Remote connection to intranet server with the help of public server
2022-07-27 13:29:00 【Winter_ Prince】
Equipment preparation
A usable public network server 、 One can access web The Intranet X X X The computer , One can access web Is not part of the Intranet X X X The computer .
Document preparation
Download the corresponding file Portal
linux Issue the command to decompress :
tar -zxvf frp_0.44.0_linux_amd64.tar.gz
The client is meant to be ssh Computers accessed .
The server refers to the public network IP The computer .
Run file configuration
# frps.ini
[common]
bind_port = 7000 # The port opened by the public server
# frpc.ini
[common]
server_addr = # Public server IP Address
server_port = 7000 # The port opened by the public server
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000 # This port is used for proxy
File run
Server operation
./frps -c ./frps.ini
Client running
./frpc -c ./frpc.ini
Non intranet computer ssh Connect
ssh -oPort=6000 [email protected] #x.x.x.x It's from the public network server IP
Open port
See if the connection is successful , If it doesn't work , Check whether the firewall port of the public server is open .
6000 and 7000 All ports should be opened .
netstat -ntulp # Query open ports
netstat -ntulp | grep Port number # You can check a specific port number
firewall-cmd --query-port=6000/tcp # Query whether the specified port is open , Tips yes, Open for indication ;no Indicates not on .
firewall-cmd --add-port=6000/tcp --permanent # Add the specified port to be opened
firewall-cmd --add-port=7000/tcp --permanent # Add the specified port to be opened
firewall-cmd --reload # Overload into the added port
firewall-cmd --query-port=6000/tcp # Query whether the specified port is opened successfully
firewall-cmd --permanent --remove-port=6000/tcp # Remove the specified port
firewall-cmd --permanent --remove-port=7000/tcp # Remove the specified port
remarks : The running public network server is ubuntu20.04, The instruction set is amd64 Of , If you need other architectures , You can visit Warehouse Download the software version of the corresponding architecture , Version mismatch will appear core dump And so on .
边栏推荐
- 滑环的分类以及用途
- From the perspective of it, the CIO of B2B industry talks about how to change from "cost center" to "growth center"?
- clearfix的作用
- Why does the class annotated with @configuration generate cglib proxy?
- 插入排序,正序,倒序
- Open source project - taier1.2 release, new workflow, tenant binding simplification and other functions
- uniapp防止连续点击出错
- Feign's dynamic proxy
- v-on基础指令
- [expression calculation] double stack: general solution of expression calculation problem
猜你喜欢

What should I do if I can't see any tiles on SAP Fiori launchpad?

QT excellent open source project 13: qscintilla

v-text

使用putty设置基于 SSH 密钥的身份验证

Qt优秀开源项目之十三:QScintilla

Is it easy to find a job after programmer training and learning

字节跳动的 Flink OLAP 作业调度和查询执行优化实践

面试官常问:如何手撸一个“消息队列”和“延迟消息队列”?

How to debug JNI program

Optimization Practice of Flink OLAP job scheduling and query execution based on ByteDance
随机推荐
聊聊feign组件的一个重要类RefectiveFeign
7-16 daily sword finger offer II 041. Average value of sliding window
What should I do if I can't see any tiles on SAP Fiori launchpad?
18. Text processing tool -grep
js基础知识整理之 —— 数组
改变线程状态的方法
Go语言系列:如何搭建Go语言开发环境?
相对定位
Can you tell me the difference between lateinit and lazy in kotlin?
A survey of video game addictive behavior research
592. Fraction addition and subtraction: introduction to expression calculation
纵横靶场-图片的奥秘
2022年7月24日 暑假第二周训练
Firefox 103 release, faster and more secure
Delay queue performance test
Reptile
v-text
Feign's overall process
v-on基础指令
W3school navigation bar exercise