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

buy pfizer viagra

generic viagra canada
buy generic viagra viagra generic
which is better viagra levitra cialis

viagra art

only now buy viagra com - cheap viagra brand 150mg
cialis viagra levitra vs

enter site order cheap viagra

viagra rebate

why does viagra give you a headache
viagra generic
discount coupons for viagra


custom writings - math homework help best resume writing service community service form professional resume writing service


places to do community service - essay help resume services writers help proofreading services

how long does a viagra tablet last

viagra age
buy generic viagra buy generic viagra
generic viagra at walmart


editing services - online editing resume writing services homework help cpm org homework help


online assignment help - professional paper writers writing essays for money academic writing writing essays for money


paper writer - do my homework homework help online cpm org homework help essaywriter

3 paragraph argumentative essay wit

legal essay competition 2018 - diversity essay for graduate school essay writers review free compare and contrast essay examples point by point

viagra in india cost in india

kroger pharmacy viagra price - viagra apotheek online
only now buy viagra com

achat viagra en ligne suisse

tarif viagra en franc

farmacia de tienda de viagra - cheap viagra
buy generic viagra

viagra 25mg prices


write my paper - writing a paper write essays for money writing a paper essay for you


[url=]xenical price[/url] [url=]buy wellbutrin online[/url] [url=]cost of plaquenil uk[/url] [url=]buy lipitor[/url] [url=]valtrex for sale cheap[/url] [url=]erythromycin buy[/url] [url=]buy lasix[/url] [url=]can i buy ventolin over the counter in nz[/url] [url=]buy kamagra online[/url] [url=]clonidine pills[/url] [url=]where to get cymbalta cheap[/url] [url=]ciprofloxacin 500 mg[/url] [url=]sildenafil online[/url] [url=]buy avana[/url] [url=]singulair generic brand[/url] [url=]tadalafil tablets for sale[/url] [url=]where to buy amoxicillin[/url] [url=]order doxycycline no prescription[/url] [url=]generic silagra[/url] [url=]buy accutane[/url]

actual shelf life of viagra

girlfriend took my viagra
generic viagra viagra generic
buy viagra uk

viagra on amazon

what is the best herbal viagra
viagra generic
when viagra invented

n620it7 y474yq

You actually reported this effectively. [url=]online pharmacies[/url]
[url=]i443xfl a89mxs[/url] 4cc8e1f

how good is viagra

viagra and penile injections
where can i buy female viagra uk
women on viagra


write my paper - writing essays for money write my paper for me cheap custom research papers essay helper


do my homework - paper help community service form homework help paper writer


[url=]buy baclofen[/url]

how to get viagra us

how to get viagra to work
generic viagra
how to make watermelon viagra


best essay writing service - resume writing service homework help math homework help best essay writing service

z71vis3 k630nd

You definitely made your point. [url=]trust pharmacy canada[/url]
[url=]s87ruyt u62mlh[/url] f4cc8e1

viagra raw recipe

viagra class action lawsuit
buy generic viagra viagra generic
uk viagra


check my essay - essay writers homework help online diploma online homework help online

e66rkk3 s41suz

Thanks, Plenty of knowledge.
[url=]top rated canadian pharmacies online[/url]
[url=]w704zqa k68ydh[/url] ec618fe


cheap custom research papers - college essay service paper help paper help pay for essays

sarah schnare viagra

how viagra was invented
viagra generic
viagra or cialis for premature ejaculation

a40mzn8 l40htr

Whoa all kinds of superb knowledge. [url=]rx pharmacy[/url] [url=]mexican pharmacies shipping to usa[/url] [url=]canadian online pharmacies[/url] [url=]cvs pharmacy online[/url]
z68uxgk a68sca s27ssbn m807km m27dyw8 f23bmd 86b4f4c


paper writing service - cheap essay writing service help with homework п»їresume help customer service resume

w71losn e31ekc

Regards, I value this! [url=]canadian pharmacy viagra brand[/url] [url=]canada drugs online[/url]
i30crh8 s17zcs w20mzxb p640hq l60qxro e16ksk 69a186b

acquistare viagra farmaci

blueberry 100 viagra - viagra barata madrid
buy cheap viagra with amex

viagra anwendung wirkun

cialis generika 2010

228331 cheap generic cialis 30 mg

cialis cheapest price 5 mg

l85zip3 f70cxg

Terrific material, Many thanks! [url=]canada pharmaceutical online ordering[/url]
t63euia y46abc c618fed


pay for essays - term papers for sale edit my paper pay for essays essay for you

viagra for sale canada

women who try viagra
buy generic viagra
side effects of viagra


pay for essay - essay for you academic writing edit my paper term papers for sale

price of viagra at walgreens

viagra def
viagra 25mg price
i am a woman and i took viagra


[url=]finpecia 1 mg[/url]

viagra household use wharton

what does it mean to take viagra daily as needed
buy generic viagra generic viagra
he is taking viagra and making love for hours


write me a paper - write my thesis write my thesis essay for you write essays for money


[url=]compare prices of generic levitra[/url] [url=]buspar medication[/url] [url=]ventolin over the counter[/url] [url=]buy sildenafil australia[/url] [url=]where to buy priligy[/url]


essay for you - essay helper do my research paper buy term papers online write my thesis

viagra helps high blood pressure

how to viagra online
viagra generic
how to buy viagra online in usa

can viagra lower blood pressure

what type of medication is viagra
generic viagra
viagra single packs how much

inexpensive viagra

cani use viagra after biopsy of prostate
comparison and contrast viagra vs cialis
how common is priapism with viagra

ketoconazole viagra interaction

flomax and viagra
viagra generic generic viagra
which of the following drugs should not be taken while using viagra? _____

we recommend viagra price usa

viagra shop usa - viagra mercury drug store
viagra professional barata

prezzo viagra rosa