Slow speed on redirect to internal server through squid proxy.
-
I'm sure this has been asked and answered before, but my search foo is coming up nil.
I have a public domain name that points to my WAN address. I have a port forward to an internal web server. My entire internal network is gigabit ethernet. If I upload a file to the webserver using its LAN address, I get near gigabit speeds (within reason, disk writes, etc.). When a host inside the network uses the fully qualified domain name to upload the same file I get roughly 1/4 of the original speed. My router hardware is an Intel(R) Atom(TM) CPU D2550 @ 1.86GHz with dual gigabit interfaces and 2GB of memory.
EDIT: This only happens when using the squid proxy. If I disable my proxy setup for a straight NAT setup the speed is unaffected.
EDIT2: When the file upload is in progress, the process (squid-1) -f /usr/local/… reached 100% on a single CPU.
Can someone please explain to me why there is such a dramatic degradation in speed? Any suggestions on correcting it?
Thanks!
-
" Any suggestions on correcting it?"
Your on the local lan right… then use the local IP, if you want to use the same public fqdn to access it then just setup a host override so that internal boxes resolve your public fqdn to your internal IP.