跳转至

netsh


更新于 2025-01-15

抓包

Bash
1
2
3
4
#抓包
netsh trace start capture=yes tracefile=mycap.etl
#停止抓包
netsh trace stop

端口映射

Bash
1
2
3
4
5
6
#添加端口映射
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=80 connectaddress=1.1.1.1 connectport=443
#删除端口映射
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8080
#查看所有端口映射
netsh interface portproxy show all