I'm at a loss on this one. I am trying to forward traffic to my pi located beneath two routers.

My network is structured like this:

Public IP 56.xx.xx.xx

router 1 (LAN Range

router 2 (DHCP reservation at (LAN Range

pi (static tried apache, flask, python server on port 80)

I am certain that port forwarding is working. I was able to successfully forward traffic to my pc hosting an IIS site and also a mac hosting node http server but as soon as I try forwarding traffic to my pi I cannot see the site. I get a connection timeout. I flushed iptables so firewall shouldn't be a problem and to make things even more confusing, I am able to contact the pi via direct local IP address in a browser or even using my local network's DNS name from the pc and mac located on the 10. network.

Could there be any firewall or traffic rules that I am missing even after running sudo iptables -F?

  • 1
    this is not raspberry pi related question. Double NAT not always works as intended, however mine working fine with HTTP and SIP. Can you access your RPI from your 192.168.0/24 network? – fcm Jan 5 '16 at 12:25
  • How would I be able to do that if the RPI is on a Wouldn't it be inaccessible via IP address since it's behind another NAT? I tried it but I cant hit my pc or mac via direct IP either which makes sense because all of them are behind the second NAT. – user2616914 Jan 5 '16 at 15:29
  • Can you connect a PC on your network? If so, from there you should be able to reach your RPI on (pppp is the port you forwarded to your 10.0.0.yyy (yyy =RPI static). – fcm Jan 5 '16 at 16:04
  • Ahh gottcha. Yeah, that works as expected. In addition I just setup an nginx server on my DNS box on the 10.0.0.x network and a reverse proxy to the PI using the PI's private in the nginx config and it works.... However I want to forward traffic to my pi directly. It just seems like the PI is ignoring any traffic coming from off the network. – user2616914 Jan 5 '16 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.