|
Next: Timeout too long if no network
|
| Author |
Message |
External

Since: Sep 13, 2003 Posts: 4
|
(Msg. 1) Posted: Sat Sep 13, 2003 12:55 am
Post subject: Packet forwarding Archived from groups: comp>os>linux>networking (more info?)
|
|
|
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 |
|
| Back to top |
|
 |  |
External

Since: Nov 28, 2004 Posts: 2505
|
(Msg. 2) Posted: Sat Sep 13, 2003 1:03 pm
Post subject: Re: Packet forwarding [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Manu J <boundlessdreamz.DeleteThis@yahoo.co.in> 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 |
|
| Back to top |
|
 |  |
External

Since: Sep 13, 2003 Posts: 1
|
(Msg. 3) Posted: Sat Sep 13, 2003 4:44 pm
Post subject: Re: Packet forwarding [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 13 Sep 2003 00:55:21 -0700, Manu J <boundlessdreamz RemoveThis @yahoo.co.in> 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 |
|
| Back to top |
|
 |  |
External

Since: May 21, 2004 Posts: 6
|
(Msg. 4) Posted: Sun Sep 14, 2003 3:45 am
Post subject: Re: Packet forwarding [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
yes, redir works fine with me.
raqueeb hassan
bunia, DRC |
|
| Back to top |
|
 |  |
External

Since: Sep 14, 2003 Posts: 3
|
(Msg. 5) Posted: Sun Sep 14, 2003 5:24 am
Post subject: Re: Packet forwarding [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
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 <boundlessdreamz DeleteThis @yahoo.co.in> 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 |
|
| Back to top |
|
 |  |
External

Since: Nov 28, 2004 Posts: 2505
|
(Msg. 6) Posted: Sun Sep 14, 2003 7:46 am
Post subject: Re: Packet forwarding [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
FJY <fjye2001.DeleteThis@yahoo.com> 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 |
|
| Back to top |
|
 |  |
| Related Topics: | How to force UDP packet size? - I use Videolan to redirect a live video mpeg2 stream from a source with MTU=65535 to a pc behind a firewall which receives only UDP packets with an MTU of no more than 1500,is there a way to tell my redirecting machine to split automatically the UDP..
BPF packet filter and pcap_compile() - Short question: I am modifying some code that utilizes the BPF. The filter is hard-coded in "packet filter assembler", but I would like to use libpcap:s pcap_compile() function to create a filter from a command string, e.g. "tcp and port 6...
Packet socket: mmapped IO - When configuring the kernel, the configuration help suggests disabling the option "Packet socket: mmapped IO". Is there any reason for choosing the slower implementation without mmap?
sending a packet from transport layer - I am facing this problem since long and really hampering my progress in implementing cisco's pgm protocol in linux kernel 2.6.15 . Basically its a reliable multicast protocol works at a transport layer. So for as of now, i am trying to change my udp..
X forwarding over ssh -- how? - Hi, look at this: --------------- bob@nizo:~$ bob@nizo:~$ echo $DISPLAY :0.0 bob@nizo:~$ ssh -X 192.168.178.2 Password: Last login: Fri Jul 15 12:12:19 2005 from 192.168.178.3 bob@mitchell:~$ echo $DISPLAY bob@mitchell:~$ --------------- This.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|