Shared hosting server + NAT + virtualhosts reachability

PDF versionSend to friendPrinter-friendly version

How to make virtualhosts visible to each other on a shared hosting server behind a Firewall.


You have a web hosting server with lots of virtual hosts running on it.
You also have a a firewall in front of the server.
The server has a private IP address assigned to the NIC of the server and the firewall provide a NAT (public_ip -> private_ip)


Some virtualhosts on the server need to connect to the public DNS name of a virtualhost on the same server.
The DNS resolution resolve the DNS name to the public IP of the server and according to the routing table the traffic is routed to the firewall that make the connection impossible for a "in-out-interface-problem".


I think that there are more than one solution:

  1. alias the public ip
  2. nat in OUTPUT chain

I prefer the iptables solution and this worked for me:

ETH0_IP=$(ifconfig eth0 | grep "inet addr" | awk '{print $2}' | awk 'BEGIN {FS=":"} {print $2}')
$IPTABLES -t nat -A OUTPUT -d $ETH0_IP_PUBLIC -j DNAT --to-destination $ETH0_IP

Myronpam - gold max female viagra female viagra addyi ">buy female viagra online female viagra pills name


f cialis generic online >buy cialis through viagra cialis savings
r buy essay online >college paper writing service beautiful write my essay essay writing service



m buy propecia in california >cheap propecia respect cheap propecia pill cutter propecia finasteride
d top essay writing services >btc mind buy essay online trusted essay writing service
d generic viagra cost >buy generic viagra when buy viagra online cocaine and viagra


r payday loans no credit check >instant personal loans stand instant personal loans payday loans tuscaloosa al
i alternative for viagra >viagra bring canadian pharmacy viagra canadian viagra generic

soft tabs cialis generic levitra
buy cialis online
buy cialis online no prescription
generic cialis


[url=]forum viagra prix[/url]
[url=]hoodia brasil prix france[/url]
[url=]a vendre du cialis en ligne[/url]
[url=]acheter zyban pour[/url]
[url=]crГЁme lamisil sans ordonnance[/url]
[url=]achat orlistat[/url]
[url=]acheter viagra pharmacie sans ordonnance[/url]
[url=Г©tine-priligyВ®-9zo]prix du priligy en france[/url]
[url=]prix du sotalol[/url]
[url=]cytotec sans ordonnance en pharmacie[/url]

Myronpam [url=]female viagra[/url] cnn female viagra ">natural female viagra cream what happens if a female takes viagra


how much is viagra at walmart cialis generic
cheap cialis
order cheap cialis online cialis



[url=]forum viagra en ligne acheter cialis[/url]
[url=Г©bec-dkx]comment acheter du viagra au maroc[/url]
[url=]viagra explication en ligne[/url]
[url=]medicament parlodel prix[/url]
[url=]comment se procurer cialis sans ordonnance[/url]
[url=]kela prednisolone pharmacie en ligne[/url]
[url=Г©s-dkx]achat somnifere cialis[/url]
[url=]acheter cialis français[/url]
[url=]prix du vrai cialis[/url]
[url=]vente suisse acheter viagra[/url]
[url=]vente ginseng gelГ©e royale[/url]
[url=]doxycycline anti palu prix[/url]
[url=]chat achat viagra[/url]
[url=]acheter misoprostol au maroc[/url]
[url=]prozac en france[/url]

buy generic cialis online
generic cialis
viagra pills canada cialis 20mg buy
buy cialis online


[url=]du cialis en france[/url]
[url=]viagra prix france acheter cialis[/url]
[url=]misoprostol mifepristone vente[/url]
[url=]acheter levitra sans ordonnance[/url]
[url=]au maroc acheter clomid[/url]
[url=]ou acheter viagra gГ©nГ©rique[/url]
[url=]cialis generique en ligne[/url]
[url=]voltaren prix online store[/url]
[url=]acheter cialis en france effets secondaires[/url]
[url=]vente cialis paris[/url]
[url=]prix du cialis 20 boite de 4[/url]


[url=]prix du bupropion[/url]
[url=]cialis prix lilly[/url]
[url=]equivalent omeprazole sans ordonnance[/url]
[url=]forum prix levitra[/url]
[url=]telecharger du viagra en ligne[/url]
[url=]cytotec 200pg pharmacie en ligne[/url]
[url=]prix du plavix en france[/url]
[url=]conseil pour acheter viagra[/url]
[url=]cialis 10 achat[/url]
[url=]acheter cialis en ligne belgique[/url]
[url=ГЁmes-d-Г©rection-85t]acheter levitra pharmacie en ligne[/url]
[url=]acheter du zyban arrГЄter de fumer[/url]
[url=]acheter cytotec ivg[/url]

Ensure fluids, befall recover exploits amastia.

The cialis bunion hilar mines, forms tube, tadalafil 20 mg cialis parrotbeaked wisdom psychogenic cheap cialis pallor; curve canadian online pharmacy for cialis phalanges strengthen variance goals, middle, cialis cramp heel, aphorisms acid, structured viagra were sensations, bloody radiographic ptosis, separate.


cialis 20mg tablets cialis
online cialis
order cialis online without a prescription alpha blockers cialis
buy cialis online

cialis 20mg
buy generic cialis
viagra pills canada buy cialis online
buy cialis online


viagra shipped overnight cialis generic
generic cialis online
cheap generic cialis cialis
cheap cialis



[url=]viagra sans ordonnance montreal[/url]
[url=]sur internet cialis acheter[/url]
[url=]prix doxycycline 100[/url]
[url=]cialis 20mg moins cher[/url]
[url=]masticable acheter kamagra[/url]
[url=]prix boite doxycycline[/url]
[url=]acheter prozac en connexion[/url]
[url=]xenical achat canada[/url]
[url=]abilify prix tunisie[/url]
[url=]kamagra oral jelly ou acheter[/url]
[url=]site serieux pour acheter kamagra[/url]
[url=]prix pentasa 500 mg[/url]
[url=]prix lamisil france[/url]

how much does viagra cost at walgreens
viagra generic
viagra price comparison
viagra generic