______ Y ______

My own personal time capsule.

Port forwarding on Windows

Sometimes almost a magical task but turns out that there is a way to easily forward the ports on windows by executing this command:

> netsh 
> interface portproxy add v4tov4 listenport=445 listenaddress=192.168.0.1 connectport=445 connectaddress=192.168.0.2

This will forward port 445 from 192.168.0.1 to 192.168.0.2 on windows.

As per Linux:

> iptables -A PREROUTING -t nat -i eth1 -p tcp --source 192.168.0.5 --dport 8080 -j DNAT --to 192.168.0.2:8080

If neither is accessible, then netcat can be used to send content of the stream to specific port:

nc -L -p 6555 | nc 192.168.0.2:8080  

Leave a comment