Re: Binding Tunnels To Different IP Addresses

From: Jacob Nevins (jacobn_at_chiark.greenend.org.uk)
Date: 10/08/04


Date: 08 Oct 2004 13:35:01 +0100 (BST)

Marvin Massih <marv_gg@groenndemon.de> writes:
>I want MSN Messenger (on a Win XP machine) to use an SSH tunnel.
>It uses port 1863 for chatting.
>
>The problem is that it contacts different servers: [...]
>I have configured the "host" file to redirect traffic to those servers
>to 127.0.0.1. My tunnel is running, if I configure it to use the login
>server (from step 2), I can log in (obviously step 1 isn't necessary).
>However, I cannot send any messages since they obviously MUST go to a
>different server.

(I'm assuming it uses TCP for all of this, otherwise you're boned.)

Can it be persuaded to do all this through a SOCKS server? Various SSH
clients (at least PuTTY and OpenSSH) can present a SOCKS server
interface to tunneling, avoiding the need to mess around with name
resolution and set up tunnels manually.

>Therefore, I thought I could just create to tunnels and bind them to
>different local IP addresses (127.0.0.1 and 192.168.0.2 for example)
>to distinguish the tunnels.
>
>Does anybody know of a program that could do that?
>As far as I could see neither Putty nor the non-commercial ssh.com
>client support that.

PuTTY at least supports this, although you will need a patch from
Microsoft to get it working with WinXP SP2:
<http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#QA.7.20>
(Incidentally, it used to be that you had to ask Microsoft nicely, but
the update appears to be directly available for download now. I'll
update the FAQ.)

Note however that 192.168.0.2 is _not_ a local IP address, so asking
PuTTY to listen on it probably won't do any good. Try addresses like
127.0.0.2 instead.



Relevant Pages

  • Re: How to tunnel http over ssh?
    ... > tunnel, you can set up PuTTY as a local SOCKS server: ... Save your new connection and restart it. ... Also, once you've set up PuTTY to act as a SOCKS server as above, you ...
    (comp.security.ssh)
  • Re: Winsock und SSH
    ... Putty ist von der Einrichtung her eigentlich gar kein Problem - ... Kommandozeile für den Tunnel-Modus angeben: ... eintippen und der Tunnel steht. ... auf einer Windows-Maschine wäre der OpenSSH-Server zu installieren. ...
    (microsoft.public.de.vb)
  • Re: RE: How to stop Admins from sniffing ?
    ... Use putty to connect to it, and ask putty to tunnel a local port to localhost:portofproxy ... Then tunnel all traffic through that traffic and it will be ssh encrypted. ... EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE ... The NSA has designated Norwich University a center of Academic Excellence ...
    (Security-Basics)
  • Re: ssh tunnel works with putty.exe but fails with plink.exe
    ... Doing "putty -load sessionname" ... Who needs plink when putty will do ... ... > port tunnel, save it as a session, and it works just fine. ... > waiting for a connection when I try to connect. ...
    (comp.security.ssh)
  • Re: Best Solution for Transfering Files
    ... tunnel like there is in Putty. ... I open two Putty windows, ... You do your PuTTY stuff through PuTTY, and your SCP stuff through WinSCP, ... as SSH is. ...
    (Ubuntu)