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.
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.