启动项
注册表
全局 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
个人 HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
目录
全局 %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp
个人 %AppData%\Microsoft\Windows\Start Menu\Programs\StartUp
命令行端口转发
netsh interface portproxy add v4tov4 listenport=1122 connectaddress=192.168.1.11 connectport=22
netsh interface portproxy add v4tov4 listenport=1222 connectaddress=192.168.1.12 connectport=22
netsh interface portproxy add v4tov4 listenport=3122 connectaddress=192.168.1.31 connectport=22
netsh interface portproxy add v4tov4 listenport=3222 connectaddress=192.168.1.32 connectport=22
netsh interface portproxy add v4tov4 listenport=3188 connectaddress=192.168.1.31 connectport=8080
netsh interface portproxy add v4tov4 listenport=3280 connectaddress=192.168.1.32 connectport=80
netsh interface portproxy add v4tov4 listenport=2122 connectaddress=192.168.1.21 connectport=22
# 访问 这台电脑的2122端口时, 转发到192.168.1.21这个地址的22端口上
netsh interface portproxy add v4tov4 listenport=1337 connectaddress=192.168.9.11 connectport=1337
...