Raspberry Pi webserver, even if its behind NAT

You have a Raspberry Pi and the way it connects to the internet is through an ISP that doesn’t provide you a static IP, instead some private IP address like 10.x.x.x or 192.168.x.x? Don’t worry, you can still connect to it from outside and have it handle all webservice requests through a very easy configuration.

The concept is called “reverse SSH tunneling”, which I just discovered today. The idea is that the Raspberry Pi is connected to a server, which behaves as a proxy between the user and the Raspberry Pi. This proxy server could well be a free micro instance of an EC2 server, or some other VPS like Linode.

I found the instructions here: Alex on Linux. Here is the final deployment diagram for me, followed by a lovely picture of my credit card sized webserver.

87 thoughts on “Raspberry Pi webserver, even if its behind NAT

  1. My brother suggested Ι might liкe this website. He ᴡɑs totally
    rіght. This post actually made my Ԁay. You can not imagine simply һow
    much time I һad spent fⲟr this infοrmation! Thanks!

  2. Hi, Neat post. There’s a problem along with your website in internet explorer, may check this?
    IE still is the market chief and a huge component to other people
    will leave out your excellent writing due to this problem.

  3. I’ve heard that there are some issues with character limits on the PS3 web browser. Has this problem been fixed? Would I be able to type out long blog posts on the PS3 web browser?.

  4. I’m impressed, I must say. Seldom do I encounter a blog that’s equally educative and amusing, and
    without a doubt, you’ve hit the nail on the head. The issue is an issue that
    too few folks are speaking intelligently about.
    I am very happy I found this during my search for
    something regarding this.

  5. My brother recommended I might like this web site.
    He was totally right. This post truly made my day.
    You cann’t imagine simply how much time I had spent for this information!
    Thanks!

  6. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.

    I think that you could do with some pics to drive the message home a bit,
    but other than that, this is magnificent blog. A fantastic read.
    I will definitely be back.

  7. I’m not sure where you’re getting your information, but good topic.

    I needs to spend some time learning more or understanding more.

    Thanks for fantastic info I was looking for this info for my mission.

  8. of course like your web-site but you have to take a look at the spelling on several of your posts.

    Many of them are rife with spelling problems and I
    to find it very bothersome to tell the truth however I will certainly
    come back again.

Leave a Reply

Your email address will not be published. Required fields are marked *