I'm setting up a simple IMAP connection to a machine that is resolvable in DNS (but not reachable due to a firewall) through an intermediary SSH server:
remotehost -> sshhost -> imaphost
(sshhost and imaphost both have "public" IP addresses in global DNS).
remotehost does make the connection according to lsof, and I can "telnet localhost imap" to connect to imaphost. But remotehost does not believe it is imaphost, so "telnet imaphost imap" goes to the real IP address and so times out.
I don't know whether the public DNS issue matters here or not; I only point it out because it's a somewhat unusual situation since most people would NAT imaphost.
How does the split personality of AlmostVPN work? I can't find anything to help me troubleshoot this.