Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to wrap an insecure connection (this one: http://culturedcode.com/things/) with a secure tunnel, a bit like http://en.wikipedia.org/wiki/Stunnel does, just using UNIX tools.

What's the best way to intercept insecure traffic, encrypt it and deliver it to the insecure socket at the other end of the communication channel?

I am used to wrapping/tunnelling VNC connections using SSH port forwarding, how would you do something to the same effect with an application such as Things for Mac/iPhone? Namely: a generic application using known ports to exchange unencrypted data?

Bonus points for step-by-step instructions ;)


share|improve this question
Why not use stunnel? Either I didn't understand what you're trying to do, or it looks like the right tool for the job. – Gilles Sep 25 '11 at 15:53
up vote 2 down vote accepted

Have a look at ncat (which is part of nmap).

ncat -l 80 -c "ncat (ip-address) (port) --ssl"

For more information see: Using ncat to provide SSL-support to non-ssl capable software

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.