LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2004, 11:48 PM   #1
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Rep: Reputation: 30
ssh port forwarding (tunneling?) question


Hi,
I have a server that only has the ssh port 22 open. I need to get access to port 4163 and 80. Is there a way to port forward those ports to my local system? What I am needing to do is run a daemon that communicates on those ports and I don't know how to go about that...
 
Old 10-20-2004, 12:52 AM   #2
fblucher
Member
 
Registered: Oct 2004
Location: Australia
Distribution: NLD 9
Posts: 60

Rep: Reputation: 15
Not sure what you're trying to do here. Is this something like it?


_______ ________
| | | |
_______| Machine|___________| Machine |
| A | | B |
--------- -----------

Machine A has port 22 open. You want to be able to pass traffice through Machine A, to get to ports 4163 and 80 on Machine B. Is this what you're trying to do? We need to know a bit more about the machines.

If Machine B is on a private IP range then iptables and DNAT will probably do what you want.

Hope that helps,
Finn.
 
Old 10-20-2004, 12:53 AM   #3
fblucher
Member
 
Registered: Oct 2004
Location: Australia
Distribution: NLD 9
Posts: 60

Rep: Reputation: 15
Well I'm pleased that my ascii art got screwed up.
 
Old 10-20-2004, 01:01 AM   #4
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
Well actually after I posted I started thinking about it and my problem is complicated. It is a cluster so:

master node (two eth interfaces)
one to the outside world
one to the worker nodes

The master node only allows 22 incoming, but there is a port that the workers use 4160 and 80 that I want access to outside of the cluster.
 
Old 10-20-2004, 01:12 AM   #5
fblucher
Member
 
Registered: Oct 2004
Location: Australia
Distribution: NLD 9
Posts: 60

Rep: Reputation: 15
Ah,
I actually read your question with my eyes this time ;o) and now see that you want to do it with SSH port forwarding. Yes SSH can do port forwarding but how will you differentiate between which destination port you want to send to? How will you say that "this traffic needs to go to port 80 on my machine" or "this traffic needs to go to port 4160"? You can get ssh to bind and forward other ports on your master node, so then port 81 would forward through to port 80 on the internal network and port 4161 would forward to port 4160, but only within your SSH session.

You can use SSH to run up a quick and dirty VPN, or setup a proper VPN aswell. Lots of stuff. Tell us more about the nature of the connections on the inside.

Seeya,
Finn.
 
  


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
SSH tunneling uses what port? Moebius Linux - Networking 3 10-03-2005 09:15 PM
ssh port forwarding question lmcilwain Linux - Networking 4 09-29-2005 02:32 PM
port forwarding or tunneling. I dont know which. thatto Linux - Networking 1 01-31-2005 07:27 AM
Need Help with Tunneling/Port Forwarding mastery0da Linux - Networking 3 01-02-2004 10:58 AM
A little question to an SSH guru (port forwarding) J_Szucs Linux - Software 3 11-01-2003 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:59 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
Open Source Consulting | Domain Registration