当前位置:网站首页>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 .
边栏推荐
- Write a program, accept a string consisting of letters, numbers and spaces, and a character, and then output the number of characters in the input string. Case insensitive.
- v-show
- 52: Chapter 5: developing admin management services: 5: developing [paging query admin account list, interface]; (swagger's @apiparam(), annotate the method parameters; PageHelper paging plug-in; Inte
- v-on基础指令
- clear
- 滑环的分类以及用途
- 马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅
- 电滑环的常用类型
- Antd's tool function getprefixcls gets the public prefix
- V-on basic instruction
猜你喜欢

初学者入门:使用WordPress搭建一个专属自己的博客

2022年7月24日 暑假第二周训练
![52: Chapter 5: developing admin management services: 5: developing [paging query admin account list, interface]; (swagger's @apiparam(), annotate the method parameters; PageHelper paging plug-in; Inte](/img/08/1cc315d568673a3892c20bc1254d38.png)
52: Chapter 5: developing admin management services: 5: developing [paging query admin account list, interface]; (swagger's @apiparam(), annotate the method parameters; PageHelper paging plug-in; Inte

Seata 在蚂蚁国际银行业务的落地实践

JNI程序如何进行参数传递
![[cute new solution] Fibonacci sequence](/img/2d/64cdc8b7625ee7a81275ad25dc2b7a.png)
[cute new solution] Fibonacci sequence

Can you tell me the difference between lateinit and lazy in kotlin?

电气成套企业如何借助ERP系统,做好成本利润管理?

Background and framework introduction and basic environment preparation of hucang integrated e-commerce project

马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅
随机推荐
Eccv2022 | Ru & Google proposed to use clip for zero shot target detection!
Dichotomy queries values in an array
js基础知识整理之 —— 数组
Perfect guide | how to use ODBC for agent free Oracle database monitoring?
V-on basic instruction
【2023复旦微电子提前批笔试题】~ 题目及参考答案
绝对定位
18. Text processing tool -grep
Why does the class annotated with @configuration generate cglib proxy?
From the perspective of it, the CIO of B2B industry talks about how to change from "cost center" to "growth center"?
51: Chapter 5: develop admin management services: 4: develop [add admin account, interface]; (only [user name + password, method]; [@t...] annotation controls transactions; when setting cookies, do yo
初学者入门:使用WordPress搭建一个专属自己的博客
Qt剪切板QClipboard 复制粘贴自定义数据
面试官常问:如何手撸一个“消息队列”和“延迟消息队列”?
Talk about one of the important classes of feign components, reactivefeign
使用putty设置基于 SSH 密钥的身份验证
eBPF/Ftrace
52:第五章:开发admin管理服务:5:开发【分页查询admin账号列表,接口】;(Swagger的@ApiParam(),对方法参数进行注释;PageHelper分页插件;拦截器拦截检查登录状态)
Rotation chart
实现新增加硬盘的磁盘分区和文件系统挂载