Phil
Phil

Reputation: 3994

Punching a web server through home router programmatically, automatically

The premise is this;

We have a piece of hardware, bought by a consumer with no technical skill. This hardware runs a web server, hosting a simple web site. This web site needs to be reachable even if it's sitting behind a home router firewall. How could this be solved? The connection doesn't strictly have to go over port 80 to the web server, some forwarding could be in the equation too, if needed.

How would you solve this?

Upvotes: 1

Views: 254

Answers (1)

George
George

Reputation: 256

There are a number of things that normally need to happen for a web server to be accessible from the internet:

Network firewall - allow traffic on port 80 or 443 to the server
Server firewall - Proper pin holes or turn it off.
Web server - Bind all IP/hostnames properly

You can control the server firewall and the web server, what you need to get around is the network firewall. One way I have seen this done is by creating a site to site VPN between the web server and your location. You then point your firewall to redirect the traffic over the VPN and the web server that is now accessible from the internet, but all traffic does go through you.

With out adding entries to your clients firewalls or giving the web server a public IP this is not possible.

Upvotes: 1

Related Questions