User Tag List

  1. sfsleeper's Avatar
    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?

    2008-03-06 04:49 PM
  2. Martok's Avatar
    how are you instructing to use the ssh tunnel that is in place?
    2008-03-07 04:22 AM
  3. sfsleeper's Avatar
    In the Mail preferences I set the imap settings to localhost (also tried and the tunneled port (2143).
    2008-03-07 06:18 AM
  4. Martok's Avatar
    did you try I believe this is the correct loopback ip address of the localhost (Confirmed by pinging localhost in ssh session).
    2008-03-07 06:34 AM
  5. hypnotx's Avatar
    Did you figure this out? I have a similar issue trying to tunnel VNSea over SSH.
    Nobody rhyme. I mean it.
    2008-03-12 05:34 AM
  6. Tonysteiner's Avatar
    Still no solution? I'm trying to do the same, but I get the same errors here.

    2008-06-07 01:13 PM
  7. sfsleeper's Avatar
    I got it to work, but I had to kill MobileMail after opening the tunnel. Otherwise the change doesn't register.
    2008-06-07 04:05 PM
  8. Tonysteiner's Avatar
    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.
    2008-06-11 04:46 PM
  9. nardo's Avatar
    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 ?
    2008-11-06 08:27 AM
  10. sfsleeper's Avatar
    It's just a standard ssh tunnel command. This is what I run as root:

    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.
    2008-11-07 06:49 AM
  11. nardo's Avatar
    Ok I know how to open tunnel now. Any idea why is not working with WinAdmin (remote desktop to ...) ?
    2008-11-12 07:10 PM