当前位置:网站首页>Port forwarding summary
Port forwarding summary
2022-07-27 07:21:00 【ailx10】
Port forwarding , It is also called port bounce , It's simple , Sum up 10 Port forwarding tips , In fact, that is A Access to B,B Access to C, however A Cannot access C, Port forwarding is to let A Access to C, An inappropriate example :
scene : Xiaohei can access and control the springboard , The springboard can access mobile phones
test : Please help Xiao Hei to access his mobile phone directly
We found that , except SSH Local forwarding operates locally , other 9 Port forwarding is operated on the springboard , So remember , Port forwarding usually occurs on the springboard , From the perspective of security events , The springboard machine is the lost host , We need to focus on the investigation ~

1、 Operate locally
2、ssh -CfNg -L < Local port >:< The victim IP>:< Victim port > < Springboard machine SSH>
3、 Access the local port 1、 Operate on the springboard machine
2、ssh -CfNg -R < Springboard port >:< The victim IP>:< Victim port > < Local SSH>
3、 Access gangplank port 1、 Operate on the springboard machine
2、0.0.0.0 < Springboard port > < The victim IP> < Victim port >
3、rinetd -c /etc/rinetd.conf
4、 Access gangplank port 1、 Operate on the springboard machine
2、iptables -t nat -A PREROUTING -p tcp --dport < Springboard port > -j DNAT --to-destination < The victim IP>:< Victim port >
3、iptables -t nat -A POSTROUTING -p tcp -d < The victim IP>> --dport < Victim port > -j SNAT --to-source < Springboard machine IP>
4、 Access gangplank port 1、 Operate on the springboard machine
2、firewall-cmd --permanent --add-forward-port=port=< Springboard port >:proto=tcp:toaddr=< The victim IP>:toport=< Victim port >
3、firewall-cmd --reload
4、 Access gangplank port 1、 Operate on the springboard machine
2、-A PREROUTING -p tcp --dport < Springboard port > -j DNAT --to-destination < The victim IP>:< Victim port >
3、-A POSTROUTING -p tcp -d < The victim IP> --dport < Victim port > -j SNAT --to-source < Springboard machine IP>
4、 Access gangplank port 1、 Operate on the springboard machine
2、nc -lp < Springboard port > -c "nc < The victim IP> < Victim port >"
3、 Access gangplank port 1、 Operate on the springboard machine
2、socat TCP-LISTEN:< Springboard port >,reuseaddr,fork TCP:< The victim IP>:< Victim port >
3、 Access gangplank port 1、 Operate on the springboard machine
2、./portmap -m 1 -p1 < Springboard port > -h2 < The victim IP> -p2 < Victim port >
3、 Access gangplank port 1、 Operate on the springboard machine
2、./nb -tran < Springboard port > < The victim IP>:< Victim port >
3、 Access gangplank port Network security has a long way to go , Wash and sleep ~

边栏推荐
- Zabbix: 将收集到值映射为易读的语句
- Algorithm -- Fibonacci sequence (kotlin)
- Pan Aimin, chairman of instruction set, attended the 2022 ecug con to speak for China's technical forces
- 在rhel7.3中编译和使用log4cxx
- 腾讯云服务器SSH链接自动断开解决方法
- ShowDoc漏洞学习——CNVD-2020-26585(任意文件上传)
- word-wrap:break-word 换行在各浏览器兼容的问题
- Jmeter:接口自动化测试-BeanShell对数据库数据和返回数据比较
- Drools(5):Drools基础语法(3)
- MySQL index failure and solution practice
猜你喜欢

35. Search Insert Position 搜索插入位置

Jmeter: interface automation test - BeanShell compares database data and return data

一款开源 OA 办公自动化系统

Convert Excel to csv/csv UTF-8

MySQL2

Advanced IO outline

ESP8266(ESP-12F) 第三方库使用 -- SparkFun_APDS9960 (手势识别)

把Excel转换成CSV/CSV UTF-8

指令集 x 数澜科技丨加速政企数字化转型,打造DT领域独角兽企业联盟

C# Winfrom 常用功能整合-2
随机推荐
零号培训平台课程-1、SQL注入基础
String类的用法
“蔚来杯“2022牛客暑期多校训练营1
Esp8266 (esp-12f) third party library use -- sparkfun_ Apds9960 (gesture recognition)
在mac中使用docker来搭建oracle数据库服务器
Flutter实战-请求封装(一)
How does golang assign values to empty structures
想sink 到 redis-hash 里面 把 对象的属性和值都写进去 ,大佬们有Demo 吗?
Synchronized锁
如何借助自动化工具落地DevOps|含低代码与DevOps应用实践
PHP defines the array using commas,
Internal class -- just read this article~
The qualities that a technical manager should have (guess)
?实验 7 基于 Mysql 的 PHP 管理系统实现
Excuse me, MySQL timestamp (6) using flick SQL is null. Is there a way to deal with this
美联储SR 11-7:模型风险管理指南(Guidance on Model Risk Management)-万字收藏
Bash: 创建返回布尔类型值的函数
整体二分?
Quartus:往别人的工程添加.v文件报错
Please ask the big guys a question. The pgsqlcdc task can't monitor changes after running for a period of time. Just restart it. What should I do