Windows端口映射与转发

端口转发

# 查看所有转发
netsh interface portproxy show all
# 端口转发
netsh interface portproxy add v4tov4 listenport=80 listenaddress=192.168.1.80 connectport=9000 connectaddress=192.168.1.80
# 删除规则
netsh interface portproxy delete v4tov4 listenport=80 listenaddress=192.168.1.80
# 使用netstat确保3340端口当前处于被侦听状态:
netstat -ano | findstr :80
 
# 查看系统防火墙状态
netsh firewall show state 
#  查看所有类型的防火墙状态
netsh advfirewall show allprofiles
# 禁用系统防火墙
netsh advfirewall set currentprofile state on
# 启用防火墙
netsh advfirewall set currentprofile state off

端口映射

Usage: D:\Download\DivertTCPconn-master\compiled_binaries\Binaries_x64\divertTCPConn.exe original_dstport new_dstport [disablechecksum] [debug]
Examples:
        D:\Download\DivertTCPconn-master\compiled_binaries\Binaries_x64\divertTCPConn.exe 3389 31337
        D:\Download\DivertTCPconn-master\compiled_binaries\Binaries_x64\divertTCPConn.exe 3389 31337 disablechecksum debug

DivertTCPconn下载: DivertTCPconn.7z
github: github项目地址

你可能感兴趣的:(服务器)