Bridged Networking and Port forwarding
Posted: 23. Feb 2013, 23:06
I run Virtualbox on a windows 2008 host.
I am running a turnkeylinux Wordpress appliance as a Guest, using a static IP and Bridged networking.
From inside my network, I can readily access the site by adjusting hosts file to have the domain name match the ip of the guest machine.
no problems there. Runs like a dream. Once I port forward on my modem/router ports 80 and 443 to the guest ip, it works from outside the network. sometimes.
Thats the problem. It works perfectly about 75% of the time, other times it just sits there and says Waiting for xxxx(websitename)xxx It doesnt time out, no errors nothing, just says "connecting" in the tab, and Waiting for... in the status bar. If I refresh it can come back immediately, or just continue waiting. Happens on all browsers, and monitoring tools seem to validate this so it isnt specific to me just being on a "bad" outside network. Its really random from what I can tell.
At this point, since it seems to work great INSIDE the LAN at all times, but outside the LAN is flaky, I am ruling out problems with the virtual machine, its guest OS and wordpress config.
This leaves me thinking there is some sort of issue with the port forwarding on my router (actiontec Q1000) or with the bridged network driver interfacing with outside ip addresses.
If I run the 'old' version of the site directly from host server, and port forward to its real ip address, everything works, but I really want to have this migrated onto a linux virtual machine for many reasons.
Does anyone have ANY idea how I can narrow this down and get this corrected? at this point im not above building some sort of router out of old pc hardware if I knew how and if it would make a difference.
I am running a turnkeylinux Wordpress appliance as a Guest, using a static IP and Bridged networking.
From inside my network, I can readily access the site by adjusting hosts file to have the domain name match the ip of the guest machine.
no problems there. Runs like a dream. Once I port forward on my modem/router ports 80 and 443 to the guest ip, it works from outside the network. sometimes.
Thats the problem. It works perfectly about 75% of the time, other times it just sits there and says Waiting for xxxx(websitename)xxx It doesnt time out, no errors nothing, just says "connecting" in the tab, and Waiting for... in the status bar. If I refresh it can come back immediately, or just continue waiting. Happens on all browsers, and monitoring tools seem to validate this so it isnt specific to me just being on a "bad" outside network. Its really random from what I can tell.
At this point, since it seems to work great INSIDE the LAN at all times, but outside the LAN is flaky, I am ruling out problems with the virtual machine, its guest OS and wordpress config.
This leaves me thinking there is some sort of issue with the port forwarding on my router (actiontec Q1000) or with the bridged network driver interfacing with outside ip addresses.
If I run the 'old' version of the site directly from host server, and port forward to its real ip address, everything works, but I really want to have this migrated onto a linux virtual machine for many reasons.
Does anyone have ANY idea how I can narrow this down and get this corrected? at this point im not above building some sort of router out of old pc hardware if I knew how and if it would make a difference.