Solved

SSH port forwarding

Posted on 2014-10-24
3
417 Views
Last Modified: 2014-10-27
Right now I have a remote site that is blocked by a firewall and currently SSHing into the network via putty and port forwarding my VNC traffic through so I only have one port (22) open to the world (Internal network:192.168.2.0/24).  I now have a camera system that has an ip on a separate vlan (192.168.1.0/29).  I am able to get to the camera from the internal network to the video lan.  I get to the camera system via IP 192.168.1.2:3000 via a browser.  I want to be able to start an SSH session and open a browser and hit that address.  Is there a way to set this port forwarding up in putty to where I can open that session.  My SSH server is on the 192.168.2.0/24 network.  Any help is appreciate.
0
Comment
Question by:nagit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Accepted Solution

by:
Jan Springer earned 250 total points
ID: 40403928
Yes, proxy all of your http traffic through your ssh tunnel.  

ssh -D 8080 USER@PUBLIC_IP -fN

where USER = is your ssh username
where PUBLIC_ip = is your ssh destination

In your browser, configure a SOCKS proxy using "localhost" as your SOCKS host and port 8080
0
 
LVL 36

Assisted Solution

by:mccarl
mccarl earned 250 total points
ID: 40405456
The fact that you can reach 192.168.1.2:3000 with a browser on your internal network means that you should be able to reach that same address from your SSH server which is on the same network. Therefore, you should just be able to setup another port forwarding rule in Putty. It would be configured with "Source port" = whatever (you could use 3000 same as the cam) and "Destination" = "192.168.1.2:3000". Then from the machine that you are running putty (ie. external to your private networks), start the putty session and then browse to "localhost:3000" (or whatever port you picked as the Source port) and hopefully it works. This is how I do it with my camera, and it works because all the communication happen via that same port. If you camera is different and uses more than one port, the above may not work, but see how you go.
0
 

Author Closing Comment

by:nagit
ID: 40406455
Thank you guys both worked just out.
0

Featured Post

Ready to trade in that old firewall?

Whether you need to trade-up to a shiny new Firebox or just ready to upgrade from whatever appliance you're using now, WatchGuard has the right appliance for you! Find your perfect Firebox today with appliance sizing tool!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question