LinuxQuestions.org
Visit Jeremy's Blog.
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 11-22-2005, 10:17 PM   #1
idsdown
LQ Newbie
 
Registered: Nov 2005
Location: HK
Posts: 10

Rep: Reputation: 0
SSH port forward problem


hi all,

i have a mail server in data center, for localhost user receive/send email, there is no problem. however, the user at remote site (other country) tried to received/send mail always failure, they found their network do not have any connection problem, it seems their ISP block received and send mail on my mail server in datacenter.

They have a linux box installed red hat 9 on remote site and ssh to my mail server, i want to set up a ssh port forward in the linux box, then all the client connect to linux box for receiving/sending email.
i make a passwordless login account on mail server, then run following command on linux box, but the client still can not received email.

ssh -L 1110:202.8x.23x.23x:110 idsdown@202.8x.23x.23x
ssh -L 1025:202.8x.23x.23x:25 idsdown@202.8x.23x.23x

Is there any problem on my setting? Thanks.
 
Old 11-24-2005, 07:58 AM   #2
pk21
Member
 
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
If 202.8x.23x.23x is the ip of your mailserver, then it should be correct. The connection has to stay up, so don't close it.
After you set up the ssh connection, the computer that set the connection up should be able to check his mail by connecting to localhost on port 1110. Did they connect to localhost on port 1110?
 
Old 11-25-2005, 12:47 AM   #3
idsdown
LQ Newbie
 
Registered: Nov 2005
Location: HK
Posts: 10

Original Poster
Rep: Reputation: 0
yes, it work.

But i want linux box to be a gateway of port forwarding, the user can connect to mail server via the port forward on linux box, how to set up it? THX
 
  


Reply


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
mp3 stream through ssh port forward??? nixmeister Linux - Networking 3 01-06-2005 11:48 AM
ssh port forward failure harmster Linux - Networking 2 03-08-2004 06:46 AM
iptables, port forward problem... wildwolf Linux - Security 11 01-12-2004 07:38 AM
Port Forward problem k0ljat Linux - Security 1 09-08-2003 09:37 AM
port forward over ssh bedwardj Linux - Security 1 06-26-2001 04:07 PM


All times are GMT -5. The time now is 02:16 PM.

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