The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-06-2008, 10:49 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
SSH tunnel for Mail not working

I wrote some shell code for my iPhone which first port knocks to my server to open up the firewall, and then creates an SSH tunnel for imap and smtp so that I can check and send mail through my server.

All those steps seem to be working, and I can telnet to the local end of the imap tunnel from the iPhone to verify that the SSH tunnel is open. However, Mail doesn't work. It tells me that it cannot connect to localhost even though it is supposed to be connecting to the tunneled port.

Does anyone have any ideas why this isn't working?

Thanks.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 03-06-2008, 10:22 PM
What's Jailbreak?
 
Join Date: Mar 2008
Device + Firmware: iPhone 2G 2.2.1
Operating System: Windows XP
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts

how are you instructing mail.app to use the ssh tunnel that is in place?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3  
Old 03-07-2008, 12:18 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

In the Mail preferences I set the imap settings to localhost (also tried 129.0.0.1) and the tunneled port (2143).
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4  
Old 03-07-2008, 12:34 AM
What's Jailbreak?
 
Join Date: Mar 2008
Device + Firmware: iPhone 2G 2.2.1
Operating System: Windows XP
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts

did you try 127.0.0.1? I believe this is the correct loopback ip address of the localhost (Confirmed by pinging localhost in ssh session).
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5  
Old 03-11-2008, 11:34 PM
What's Jailbreak?
 
Join Date: Aug 2007
Posts: 22
Thanks: 0
Thanked 1 Time in 1 Post

Did you figure this out? I have a similar issue trying to tunnel VNSea over SSH.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6  
Old 06-07-2008, 07:13 AM
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone
Operating System: Leopard
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Still no solution? I'm trying to do the same, but I get the same errors here.

Anyone?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7  
Old 06-07-2008, 10:05 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

I got it to work, but I had to kill MobileMail after opening the tunnel. Otherwise the change doesn't register.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8  
Old 06-11-2008, 10:46 AM
What's Jailbreak?
 
Join Date: Jun 2008
Device + Firmware: iPhone
Operating System: Leopard
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Hmm, yes I already figured this out myself, but I stil can't connect to the server...
How did you set up the tunnel? I'm ssh-ing from my desktop machine to my iphone and starting it from there.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #9  
Old 11-06-2008, 02:27 AM
What's Jailbreak?
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

How did you open tunnel ?
I managed to add my private key, and SSH to my router. but don't know how to open tunnel ?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #10  
Old 11-07-2008, 12:49 AM
What's Jailbreak?
 
Join Date: Feb 2008
Device + Firmware: 1.1.2
Operating System: Leopard
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

It's just a standard ssh tunnel command. This is what I run as root:


Code:
ssh -C -N -f -q -p 443 -L 2143:<destination_ip>:143 -L 2225:<destination_ip>:25 -l <username> <destination_ip>
(with <username> and <destination_ip> replaced by the correct values).

Then point my mail account at the appropriate ports on localhost.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #11  
Old 11-12-2008, 01:10 PM
What's Jailbreak?
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Ok I know how to open tunnel now. Any idea why is not working with WinAdmin (remote desktop to 127.0.0.1xxx ...) ?
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Go to Top
ModMyI

All times are GMT -6. The time now is 02:48 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top