Networking Forums

Networking Forums > Computer Networking > Linux Networking > Packet forwarding

Reply
Thread Tools Display Modes

Packet forwarding

 
 
Manu J
Guest
Posts: n/a

 
      09-13-2003, 07:55 AM
hi,
I want to know if there is any program which can be run with user
privileges on linux which can listen to a port and forward all packets
arriving at that port to
a destination machine.

Lets say i have 3 computers.
X,Y,Z
X can connect to Y and Y can connect to Z.But X cannot connect to Z
X->Y->Z
And Y doesn't act as a gateway for X.
So i need a program which will run on Y an listen on say 3333 and
forward all packets to 3333 at Y to 4444 at Z.

Thank You
 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      09-13-2003, 11:03 AM
Manu J <(E-Mail Removed)> wrote:
> hi,
> I want to know if there is any program which can be run with user
> privileges on linux which can listen to a port and forward all packets
> arriving at that port to
> a destination machine.


> Lets say i have 3 computers.
> X,Y,Z
> X can connect to Y and Y can connect to Z.But X cannot connect to Z
> X->Y->Z
> And Y doesn't act as a gateway for X.
> So i need a program which will run on Y an listen on say 3333 and
> forward all packets to 3333 at Y to 4444 at Z.


Sounds like you could use "SSH Proxy Command" or
"SSH Port Forwarding", a google search on those should show dozens
of guides how to go on.

Good luck

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Creideiki
Guest
Posts: n/a

 
      09-13-2003, 04:44 PM
On 13 Sep 2003 00:55:21 -0700, Manu J <(E-Mail Removed)> wrote:
> hi,
> I want to know if there is any program which can be run with user
> privileges on linux which can listen to a port and forward all packets
> arriving at that port to
> a destination machine.
>
> Lets say i have 3 computers.
> X,Y,Z
> X can connect to Y and Y can connect to Z.But X cannot connect to Z
> X->Y->Z
> And Y doesn't act as a gateway for X.
> So i need a program which will run on Y an listen on say 3333 and
> forward all packets to 3333 at Y to 4444 at Z.
>
> Thank You


try the 'redir' program

most distributions have it somewhere.

Here is Debian's version:

http://packages.debian.org/stable/net/redir.html

 
Reply With Quote
 
FJY
Guest
Posts: n/a

 
      09-14-2003, 05:24 AM
I use SSH to do the same job as this one. Like this:
ssh -g -L srcport:desthost:destport user@remotehost

This works fine for single port forwarding. But for multi-port services
like FTP and Real audio (Helix server), anyone knows how to do port
forwarding using SSH? Thanks a lot.

On Sat, 13 Sep 2003 13:03:22 +0200, Michael Heiming wrote:

> Manu J <(E-Mail Removed)> wrote:
>> hi,
>> I want to know if there is any program which can be run with user
>> privileges on linux which can listen to a port and forward all packets
>> arriving at that port to
>> a destination machine.

>
>> Lets say i have 3 computers.
>> X,Y,Z
>> X can connect to Y and Y can connect to Z.But X cannot connect to Z
>> X->Y->Z
>> And Y doesn't act as a gateway for X.
>> So i need a program which will run on Y an listen on say 3333 and
>> forward all packets to 3333 at Y to 4444 at Z.

>
> Sounds like you could use "SSH Proxy Command" or
> "SSH Port Forwarding", a google search on those should show dozens
> of guides how to go on.
>
> Good luck


 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      09-14-2003, 05:46 AM
FJY <(E-Mail Removed)> wrote:
> I use SSH to do the same job as this one. Like this:
> ssh -g -L srcport:desthost:destport user@remotehost


> This works fine for single port forwarding. But for multi-port services
> like FTP and Real audio (Helix server), anyone knows how to do port
> forwarding using SSH? Thanks a lot.


Try a google search for "ftpsshd", perhaps this is what you want.
Albeit I'd use scp/sftp for something like this.

BTW
Please stop top-posting.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      09-14-2003, 10:45 AM
yes, redir works fine with me.

raqueeb hassan
bunia, DRC
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Forwarding in Linux. rramesh1@gmail.com Linux Networking 1 10-30-2006 11:26 PM
Packet Forwarding and mirroring george Linux Networking 0 12-08-2005 05:09 PM
packet forwarding query rahul8143 Linux Networking 0 04-14-2005 01:36 PM
packet forwarding luke Linux Networking 1 09-03-2003 06:11 PM
Packet forwarding Andy Zhang Linux Networking 3 08-02-2003 02:12 PM



1 2 3 4 5 6 7 8 9 10 11