LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2005, 11:25 PM   #1
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
SSH tunnel stuff


I thought I had this figured out. I've got machine_a and machine_b... both Solaris for simplicities sake. I want to be able to forward from machine_a to machine_z. I run

machine_a:> ssh -L 23:machine_z:23 username@machine_z

It seems to run fine. However, on my workstation, I telnet to machine_a, and I'm actually telnetting into machine_a. IE - no forwarding. Syntax wrong?

Also, what if I wanted to use a port that's normall not open? Say I have an inhouse application running on machine_z that listens on port 2501. I want to fowrard anything that hits machine_a:2501 to machine_z:2501. Isn't machine_a not listening on this port though, and thus will reject any packets?

Thanks
 
Old 08-31-2005, 03:42 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
ssh forwarding for security reasons only listens to the local interface... ie: you are not supposed to use forwarded ports from another pc, so it is running perfectly fine
 
Old 08-31-2005, 08:25 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Nathaniel - your signature has "told" misspelled.
 
Old 08-31-2005, 05:48 PM   #4
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Ugh... didn't know that. ?
Well, anyone want to suggest another solution for my problem?

Quote:
Nathaniel - your signature has "told" misspelled.
"not" should be capitalized as well.
 
Old 08-31-2005, 07:24 PM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Hi GaijinPunch, have a try with ip filter it is a firewall/nat software. Check it over here

http://coombs.anu.edu.au/ipfilter/

Good Luck.
JdogPC
 
Old 09-01-2005, 12:15 AM   #6
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Will do. I'm looking at IPTABLES as well... probably not bad to learn 'em both. Thanks for the link.
 
  


Reply



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 Tunnel - need some help on this MeridianRebel Linux - Networking 2 08-11-2005 02:10 PM
ssh tunnel crep Linux - Networking 2 08-25-2004 08:24 PM
ssh tunnel TroelsSmit Linux - Software 2 04-30-2004 03:30 PM
Ssh Tunnel tinaa Linux - Software 7 07-29-2003 07:52 PM
SSH tunnel? tarballedtux Linux - Networking 3 04-09-2002 03:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:33 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