This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DNAT on Webserver?

I'm using a small webcam http server that can only work on port 80. But my ISP blocks port 80. So is it possible to access the HTTP server from a client using port say 82 and have that translated to port 80 at the Webserver end? and also the other way have port 80 from the webserver go to port say 82 also? Hope you all understand what the heck I'm talking about. I'm sure it's not rocket science but it is to me right now.

Thanks

Fred Watson  


This thread was automatically locked due to age.
  • Assuming this does not violate your ISP SLA....

    Put a web server behind the firewall - you can set it to use any port you want (just a condif issue with apache or IIS) but we'll stick with 80.

    On the firewall, create a service called webcam and give it a source port of 1024:65535 for tcp and a destination port of 82 (but I would recommend a high number > 1024). Then create a network entry for the webserver (say "webcamserver" - with a mask of 255.255.255.255).

    Configure a DNAT entry  to accept a connection from anywhere (source: any) to the external interface (destination: eth0_interface - provided eth0 is your internet facing interface) for the service "webcam". Then, set "change destination" to the "webcamserver" and service destination to "http".  
  • Norwich,

    Thank you so much I set up my webserver and ASL just as you recommended and everything worked perfect first shot. I hope it works just as well with more testing.

    this is not for a public website but only for a camera webserver for personal use so I do not believe my ISP will mind at all, at least I hope not but I'm sure they'll let me know if they dont like it.  [;)]

    Thank you for you fast response and resolution.

    Fred Watson  [:)]