LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How do I forward specific network traffic securely to another host? (https://www.linuxquestions.org/questions/linux-server-73/how-do-i-forward-specific-network-traffic-securely-to-another-host-720177/)

silverblimp 04-19-2009 06:38 AM

How do I forward specific network traffic securely to another host?
 
I want a my debian box to forward all traffic incoming from a certain port to a remote host securely.

traffic should pass automaticaly like a secure proxy:
pc --> my pc --> host

I tried port forwarding using "ssh -L" but couldnt make it work.
apparently this only forwards traffic sent to the local port from the local machine.
Im hoping for easy solutions...

Thanks.

blackhole54 04-20-2009 02:51 AM

Quote:

Originally Posted by silverblimp (Post 3513966)
I tried port forwarding using "ssh -L" but couldnt make it work.
apparently this only forwards traffic sent to the local port from the local machine.

Try adding the -g option.

silverblimp 04-20-2009 05:11 AM

Quote:

Originally Posted by blackhole54 (Post 3514781)
Try adding the -g option.

thank you for your reply.

I have and now anyone trying to telnet to my pc is routed just as i wanted.
However attempting to ssh gives a man-inthe-the-middle-attack warning.
I will attempt to solve this and post the result.

silverblimp 04-20-2009 05:48 AM

scratch that. ssh works.
erasing the known hosts file will allow the remote client to get the remote hosts ID
as the one for my pc.
thanks again.


All times are GMT -5. The time now is 04:53 PM.