Skip to content

netsh ​


更新于 2025-01-15

抓包 ​

shell
#抓包
netsh trace start capture=yes tracefile=mycap.etl
#停止抓包
netsh trace stop

端口映射 ​

shell
#添加端口映射
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