Manually Adding Port Forwards in PuTTY
I find the PuTTY GUI for doing this somewhat limited, so I prefer to manually edit the registry. You can use these same steps for modifying other fields as well.
1) Open the registry editor (run regedit)
2) Click on "HKEY_CURRENT_USER"
3) Click on "Software"
4) Click on "SimonTatham"
5) Click on "PuTTY"
6) Click on "Sessions"
7) Select the session you wish to modify
8) Select "PortForwardings" (REG_SZ)
9) Add the value. The values are separated by commas (,)
Syntax
L[SRC_IP]:[SRC_PORT]=[DST_IP]:[PORT]
Single Entry Example
L127.0.0.25:443=10.0.0.138:443
This will forward traffic from 10.0.0.138 to 127.0.0.25 on port 443.
Multiple Entry Example
L127.0.0.25:443=10.0.0.138:443,L127.0.0.25:9999=10.0.0.138:3389
This would map port 443 on 127.0.0.25 to 10.0.0.138, as well as setup an RDP forward (3389) on port 9999 (Using the same source and destination port for RDP gives a username/password error)
1) Open the registry editor (run regedit)
2) Click on "HKEY_CURRENT_USER"
3) Click on "Software"
4) Click on "SimonTatham"
5) Click on "PuTTY"
6) Click on "Sessions"
7) Select the session you wish to modify
8) Select "PortForwardings" (REG_SZ)
9) Add the value. The values are separated by commas (,)
Syntax
L[SRC_IP]:[SRC_PORT]=[DST_IP]:[PORT]
Single Entry Example
L127.0.0.25:443=10.0.0.138:443
This will forward traffic from 10.0.0.138 to 127.0.0.25 on port 443.
Multiple Entry Example
L127.0.0.25:443=10.0.0.138:443,L127.0.0.25:9999=10.0.0.138:3389
This would map port 443 on 127.0.0.25 to 10.0.0.138, as well as setup an RDP forward (3389) on port 9999 (Using the same source and destination port for RDP gives a username/password error)
Comments