LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-19-2009, 06:38 AM   #1
silverblimp
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 0
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.

Last edited by silverblimp; 04-19-2009 at 08:39 AM.
 
Old 04-20-2009, 02:51 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by silverblimp View Post
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.
 
Old 04-20-2009, 05:11 AM   #3
silverblimp
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by blackhole54 View Post
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.

Last edited by silverblimp; 04-20-2009 at 05:34 AM. Reason: no longer relevant
 
Old 04-20-2009, 05:48 AM   #4
silverblimp
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
  


Reply

Tags
port forwarding, ssh forwarding, ssh tunnel


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
Finding a way to forward traffic to same IP on different network using VPN. TaigaIV Linux - Networking 1 07-10-2008 02:25 PM
How to forward traffic to one subdomain do a different internal IP. E211 Linux - Server 3 06-10-2008 11:27 PM
iptables: forward traffic through server Swakoo Linux - Networking 3 03-30-2008 11:59 PM
Forward Applications Securely Over Internet? iXneonXi Linux - Security 1 03-08-2007 03:14 AM
iptables forward traffic alaios Linux - Networking 1 09-28-2005 04:43 AM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration