内网端口转发
netcat
把本地的8081端口的访问转移到8888号
1 | mknod tunnel p #创建一个临时的管道文件tunnel |
socat
把所有本地的80号转移到10.0.0.1的8080上
1 | socat -d -d -l TCP4-LISTEN:80,reuseaddr,fork,su=nobody TCP4:10.0.0.1:8080 |
将本地80端口转发到远程的80端口
1 | socat TCP-LISTEN:80,fork TCP:www.domain.org:80 |
LCX
将内网的3389端口转发到公网的51端口
1 | 内网机器:lcx.exe –slave 公网IP 端口 内网IP 端口 |
监听51端口,转发到公网机器的3389端口
1 | 公网机器:lcx.exe –listen 51 3389 |
我们在本地机器上远程公网IP+3389 ,就连接上了内网机器的3389
- Post title:内网端口转发
- Post author:ssooking
- Create time:2020-01-08 00:00:00
- Post link:https://ssooking.github.io/2020/01/内网端口转发/
- Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.