Putty & SSH-Tunnel help

As I am currently switching from Thunderbird to Outlook 2010 I encountered a little problem:

Outlook 2010 doesn't really support proxy/socks usage. As I always connect my mail client & browser via a SSH-Tunnel to the internet, I thought I could re-map the IMAP/SMTP port with putty?

Putty -> Connection -> SSH -> Tunnels
Source Port: 1234
Destination: imap.gmail.com:993

Then I connect to my server via SSH.

In Outlook 2010:
IMAP-Server: localhost
Port: 1234

Same for SMTP (with different port).

Will this solution route my Outlook 2010 traffic through the SSH-Tunnel to my server?

Thanks
Comments
16
no
just
no
with source you mean the original port and destination as the final port oyu map to?
why not use 993 in the first place then?
What if I have some other app running that needs the port 993? It will be used/blocked by putty?
Parent
hmm dunno, but the server should know how to handle it. but from i read (and i really never tried it) i'd say the way you first wanted to try it, should work
Parent
hmm alright thanks
Parent
your tunnel can only route the traffic through a port (22 or w/e).

so basically if you tell office to connect to that tunnel port you try to get email from ur localhost:993 where there is no mailserver. :o

i think office uses windows build in 'connection manger', there you can assign a windows wide proxy.
i like u talking about ports and tunnels thats so damn hot





=)
Parent
i am damn hot, so is ur tunnel! ;)

may i point my exit port towards your destination port? ;>







<3
Parent
what a comeback!!! ive blushed for a moment :Dd
Parent
u r cute! i like u! :* <3
Parent
actually everything works with the tunnel.

When putty runs I can send/recieve mails. If I quit it I can't.

I only wonder if the traffic goes through putty -> my ssh server -> gmail or just
through putty -> gmail
Parent
check netstat -an on your server while you are connected to gmail:993

then there should be a connection to gmail and that port
Parent
rofl how could I forget about netstat :D thx

well those are the results (from my laptop which connects to the server):

Quote
TCP 127.0.0.1:1331 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1332 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1333 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1334 0.0.0.0:0 LISTENING


1331 = browser SSH
1332 = imap ssh
1333 = smtp
1334 = pop

So now idea where the connection goes to :S The browser ssh works tho (www.whatsmyip.com tells me the ip from my server)
Parent
check on the server plx. the listing ports are only the local tunnel ports by putty.

ur server needs to establish the connection to ur destination e.g. website or imap server.
Parent
Will do tonight. Anyway, as Outlook asks me to accept a new server certificate (ssh from my server) I am sure everything works.
Parent
Back to top