LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2013, 04:54 PM   #1
km65
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Rep: Reputation: Disabled
My first question - about configure Putty


Hello from germany!

I have a little question about using tunnels with Putty.

A little summary
I have this setup:

Network behind NAT Firewall with:
1) Debian Client
2) IP Camera

Somewhere in Datacenter:
3) Debian VPS

Somewhere in Internet:
4) Windows Client



So... now the target ist to get on the ip camera from somewhere in this world.

Therefore I have a reverse ssh tunnel from 1) to 3).
So I can connect from 4) to 3) with putty ssh and can then connect to 1) from 3).


With winscp you can make connections over ssh tunnel... so I can do this 'automatically'.
But now I want to to the same with putty to open a SOCKS proxy.
Then I could use this proxy to get from 4) to 2) over Firefox.

But how I could configure this 'over ssh tunnel' on putty?

I really hope that anybody understand my english and the target I pursue.

Thanks for you help!!
 
Old 04-01-2013, 09:56 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi,

First off, welcome here
I hope we can help you, at least...we all do an effort..

Maybe a question: what's the purpose? Perhaps some simpler approach is possible...

Thor
 
Old 04-02-2013, 04:24 AM   #3
km65
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for your welcome!

The purpose is that the IP Camera 2) is located behind a NAT. That's because it is connected with internet via UMTS.
In this case there is no public IP where you could directly connect to.
 
Old 04-04-2013, 04:13 AM   #4
km65
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Anybody with some helpful tips?
 
Old 04-04-2013, 09:56 AM   #5
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Umm...sorry, some other stuff caught my focus here...
Okay...the camera, is it non-operator used? As in: surveillance? If not (webchat or so) how about something like Google talk? If not, an IP webcam could help...
 
Old 04-04-2013, 10:11 AM   #6
Annielover
Member
 
Registered: May 2011
Location: Belgium
Distribution: Ubuntu Server Edition, Fedora 16
Posts: 90

Rep: Reputation: 8
Open PuTTY -> on the left side expand "SSH", and select "Tunnels".
Enter a high port i.e. 27000 and click "add".

Select "Dynamic", enter "27000", and then enter "debianVPS:27000" under destination.
Next, select “Session on the left side. Set hostname to "debianVPS". Click "Open" to login to the server. Enter your username and password, and as long as the window is open and you’re logged in, the dynamic proxy will be open.
 
1 members found this post helpful.
Old 04-04-2013, 10:57 AM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
@ Annielover - thanks, this was instructive...
@ OP - sorry I could'nt come up with this...
 
Old 04-04-2013, 03:40 PM   #8
km65
LQ Newbie
 
Registered: Apr 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Thor_2.0 View Post
Umm...sorry, some other stuff caught my focus here...
Okay...the camera, is it non-operator used? As in: surveillance? If not (webchat or so) how about something like Google talk? If not, an IP webcam could help...
Thanks, but yes it is an camera for surveillance. And it is allready an IP - camera like I've discribed in my first post.



Quote:
Originally Posted by Annielover View Post
Open PuTTY -> on the left side expand "SSH", and select "Tunnels".
Enter a high port i.e. 27000 and click "add".

Select "Dynamic", enter "27000", and then enter "debianVPS:27000" under destination.
Next, select “Session on the left side. Set hostname to "debianVPS". Click "Open" to login to the server. Enter your username and password, and as long as the window is open and you’re logged in, the dynamic proxy will be open.
Thanks for your post!
But this procedure I already knew.
It isn't the only function I need...

You're right, I need this proxy function but I will show you the function on WinSCP, I also need:
On the first Pic I can set the login data of the "debianVPS". And on the second Pic I can set the login data of the Debian Client, which have a reverse ssh tunnel to the "DebianVPS", to connect to the Debian Client through the DebianVPS.

The only solutio I would know, ist to run two putty sessions simultaneously.
The first to connect to debian VPS for making a proxy to the debianVPS.
The second to connect to localhost through the proxy for making connection to debian client...

You know what I mean? Is it possible to do this with Putty really simple?

Thanks so much!!
Attached Thumbnails
Click image for larger version

Name:	1.JPG
Views:	9
Size:	41.7 KB
ID:	12220   Click image for larger version

Name:	2.JPG
Views:	8
Size:	42.3 KB
ID:	12221  

Last edited by km65; 04-04-2013 at 04:26 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] please advice me to configure putty thiyagusham Linux - Newbie 10 02-18-2013 09:48 AM
LXer: How To Configure SSH Keys Authentication With PuTTY And Linux Server In 5 Quick LXer Syndicated Linux News 0 06-29-2009 12:20 PM
question about VI/VIM and ssh via putty Lleb_KCir Linux - Software 6 06-25-2009 07:03 AM
PuTTY and Suse 9.2 question. swamprat SUSE / openSUSE 2 01-03-2007 10:04 PM
putty question unixfreak Linux - Newbie 3 08-30-2004 02:57 PM


All times are GMT -5. The time now is 02:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration