Super User is a question and answer site for computer enthusiasts and power users. 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 have an security cam with a built-in webpage inside my home network. That camera is using basic HTTP authentication instead of SSL. I want to be able to access the camera's webpage from outside my network, but I don't want to open an unencrypted video stream to the outside world.

Right now, I'm doing some cumbersome ssh tunneling where I bounce off an ssh server like:

ssh -N -L 9090:CAMERA_IP:80

and then I connect to my web page like:


But this is a pain.

Now, gentle reader, I beseech you to tell me how I can use linux (Ubuntu) to get a fully encrypted SSL connection to my internal web page without the hassle of creating an ssh tunnel each time.

I believe I can use stunnel, but I'm not sure of the command.

share|improve this question

Create a file on with the content (use the defualt stunnel.conf file as the starting point):

accept  = MY_PORT
connect = CAMERA_IP:80

Then allow incoming connections from MY_PORT, and you should be able to use SSL to my_port to connect.

share|improve this answer
I'll give that a try. – Ross Rogers Mar 15 '11 at 0:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .