Windows port forwarding

#window端口转发
netsh interface portproxy add PtoP  listenaddress=10.9.1.248 listenport=7890 connectaddress=8.8.8.16  connectport=7890

# remove port forwarding

#netsh interface  portproxy delete PtoP listenaddress=10.9.1.248 listenport=7890

#View forwarding rules

#netsh interface  portproxy show  PtoP

The firewall may cause inaccessibility, modify the registry and turn off win10 professional version ↓  
#Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService
# change the start value to 4

おすすめ

転載: blog.csdn.net/lansye/article/details/119929511