Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 12th, 2004, 08:55 AM
nvahalik nvahalik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 7 nvahalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Strange SSH connection forwarding tunnel to another box..

I'm trying to basically do something like this:

I want to go from my web browser on my box, and set up a tunnel so that I can connect to the remote router web config through the ssh port.

First? Is this possible? I've forwarded connections to the remote box, but not to another box on the remote network.

The Router has port 22 forwarding to the remote box IP, but not 80.

I tried running netcat on the "Remote Box" and forwarding it to http://192.168.2.1:80, but whenever the ssh connection would attempt it would fail.

Code:
My box ==> Web ==> Router ==> Remote Box
                     ^         |
  		      \_HTTP__/


Any help out there?

Reply With Quote
  #2  
Old January 12th, 2004, 11:34 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
Will you have a secure connection between each and every box?
Example:
Remote Box => rb
Router => r
My Box => mb

Forward port 22 on rb to port 8022 on r
Forward port 9022 on mb to port 8022 on r
...
I have not tested these number but see if this accomplishes what you need.
yes you can forward ports to a remote box via ssh.

Reply With Quote
  #3  
Old January 13th, 2004, 07:06 AM
nvahalik nvahalik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 7 nvahalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A secure connection betwen each and every box? It isn't required, just the one from my box to the remote box. The only port I have forwarding to that box is 22 and 540 (uucp)

Reply With Quote
  #4  
Old January 13th, 2004, 08:34 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
If I understand your diagram correctly you are wanting to log in to the Remote Box correct? You can either `hop` and log in from each box or you can forward the ports so that you can log in once.
__________________
El éxito consiste en una serie de pequeñas victorias día a día

MySQL, MS SQL, MS ACCESS, Oracle Database Manager - http://victorpendleton.net/products/psdviewer.html

Last edited by victorpendleton : January 13th, 2004 at 08:39 AM.

Reply With Quote
  #5  
Old January 13th, 2004, 08:38 AM
nvahalik nvahalik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 7 nvahalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, but I can't ssh from the remote box to the router. It is only accessible through a web interface.

Reply With Quote
  #6  
Old January 13th, 2004, 08:45 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
Are you sshing into the router or into the remote box?

Reply With Quote
  #7  
Old January 13th, 2004, 11:15 AM
nvahalik nvahalik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 7 nvahalik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm sshing into the remote box

Reply With Quote
  #8  
Old January 13th, 2004, 10:31 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
If the application you are using has a web interface or a port that it listens to for web requests you can forward that port to your localhost.
For example

-L 80:127.0.0.1:80 ip_remote_host

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > Strange SSH connection forwarding tunnel to another box..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway