Home » Useful » Dynamic port forwarding (SOCKS proxy)

Dynamic port forwarding (SOCKS proxy)

Was in a pickle as needed to access something from a specific IP range. Had an SSH access to the box on that range therefore decided to use dynamic port forwarding. With the command bellow I forced ssh to dynamically forward port 8080 on the machine A to port 22 on the machine B.

$ ssh -D 8080 [email protected]

Then in Firefox under Preferences > Advanced > Network > Settings, I have chose “Manual Proxy Configuration”. In the SOCKS host typed ‘localhost’ and in Port field ‘8080’ (omitting the quotes).

Click Ok and voilĂ , google what is my IP and the machine B’s IP was displayed, now I could access the range restricted content.

Posted in Useful and tagged as , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.