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

does aetna cover viagra

i use it buy viagra generic - buy viagra online
spyware buy viagra dose

pfizer viagra coupons


costo delle pillole cialis

veilig online cialis kopen - generic cialis

cheap cialistablets cialis tadalafil - cialis online

discount cialis

dose maximale viagra

viagra vs cilias - viagra durata effetto
buy viagra online

usefull link wwwviagracom

acheter viagra belgique

viagra in phuket to buy - lake viagra michigan
viagra online

acheter viagra marocai

look there viagra woman

just try viagra soft - generic viagra
follow link how to get viagra

principio attivo viagra

natural viagra pharmacy online

viagra til - viagra para comprar
viagra indications

viagra cena w aptece

best viagra price online

viagra plus overnight pharmacy - price of viagra
viagra 25 mg pills

cheap viagra uk paypal more

a46ero8 z20olr

Thanks a lot! Terrific information.
buy detrol canadian pharmacy king

case search pennsylvania

kpacmiougvtj circuit court miami dade county case search
north carolina case number search milwaukee municipal court case search illinois simple case search las vegas family court case search

viagra billigst

viagra 5mg price - cheap viagra
viagra generic

viagra chino venta

z150gf6 v333rf

You actually explained it very well! cephalexin sale on line pharmacy

n479ozl g75yas

Terrific posts, Thanks a lot.
provestra sale canada drug


college application essay service - college essay review services essay on community service college application essay editing services cheap essay writing service usa

click now order daily cialis

40 mg cialis online uk - cialis in farmacia svizzera
cialis uk without prescription

cialis las palmas

viagra plus overnight pharmacy

viagra to buy in uk - viagra
viagra ou cialis levitra

viagra genaric medikament

p36kee8 x85ovz

Nicely put, Many thanks!
buy clarinex canadian pharcharmy

cialis generico 10 mg prezzo

fda approved cialis for bph - cheap cialis online
cialis free samples australia

cialis efectos mujeres


verordnung fr cialis

does cialis cost - we like it 5 mg cialis
cialis tabletas bolivia

cialis online offert

cialis india buy

cialis italiano - cialis 60 ans
cialis online pay paypal

link for you buy 5 mg cialis

achat de cialis foru

50mg cialis retail price - cheap cialis online
le prix de marque cialis

can i buy cialis in phuket

generique cialis en ligne

cialis q es - buy cialis online
cialis in farmacia svizzera

cialis free samples australia

acquisto cialis generic

only now drug cialis - cheap cialis online
buy generic cialis

ordre de cialis bon march

worst case binary search

knlghqwpwzof odcr case search
case search north carolina court case search texas court case search by name sangamon county circuit clerk case search

district of columbia case search

fqkohxokvwvc ms case search
illinois judicial case search collin county court case search us supreme court case search michigan circuit court case search

cialis italiano

cialis comprimidos 20 mg - cheap cialis
40 mg cialis online uk

cialis mit mastercard kaufen



nevada court case search

vomchcwhddfn md case court search
illinois circuit court simple case search philadelphia case search md courts case search michigan case law search

cialis vs viper

generic cialis in uk kaufen - buy cialis
online cialis

pillole cialis generico

cialis rapide

receta de cialis - buy generic cialis
5 mg cialis cheap

cialis en pharmacie pari

vendita online di cialis

cialis buy tadalafil - does cialis cost
does cialis work right away

cialis e controindicazioni


try it buy cialis super active

sale cialis jelly - cialis not for sale
generic cialis online

cialis bph dose

cialis generico tijuana

online cialis ship to canada - generic cialis
low cost generic cialis

generic cialis in uk kaufen

cialis q es

cialis comprimidos 20 mg - cialis
cialis online

try it buy cialis super active

case law search engine

goyczqlbuqut orange county case search
arizona circuit court case search sd case search ga judiciary case search virginia judicial case search

we use it original cialis

mg for cialis

[url=]cialis medicament prix[/url]
cialis a quel age

cialis 10 mg coments


cialis guaranteed overnight

cialis levitra comparison

[url=]discount cialis free[/url]

buy cialis online from india