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 cialis jelly with no rx

238921 generic cialis 5mg australia - generic cialis

how can i find somebody to do my litearature assingment - ed pills

prezzi del viagra generico

cost of 90 viagra pills - does viagra make you hornier

viagra uk generic

medicinesbuying viagra

much viagra costs india - buy free viagra samples
viagra generic

cuanto viagra debo toma

best liquid viagra

viagra creme pour femme - viagra precios comprar
buy viagra soft paypal payment

viagra for sale amsterdam

comparer les prix du viagra

the cheapest viagra - use viagra twice in 24 hours
viagra cheap

canadian mail order viagra


[url=]antabuse prices[/url] [url=]sildalis tablets[/url] [url=]stromectol cream[/url] [url=]hydroxychloroquine uk[/url] [url=]resochin[/url]


[url=]hydroxychloroquine sulfate australia[/url] [url=]viagra 100mg cost in usa[/url]

viagra 100 price sams club

achetez le sildenafil viagra - cheap viagra
buy cheap viagra online

viagra basel

preis viagra 100mg pfizer

viagra do i need prescription - buying viagra on line
viagra 85 ans

will viagra go generic

cheap lasix in Finland

purchase lasix
lasix online pharmacy in France best price for lasix in Dallas where to buy lasix in Finland online

buy lasix in United States
buy lasix
cost of lasix for dogs
best price for lasix in San Antonio
where to buy lasix in Detroit

best price for lasix in Pittsburgh

purchase lasix from Virginia Beach
top 9 best places to buy lasix in Sweden where to buy lasix in Charlotte online buy lasix in New Orleans

lasix delivered overnight
lasix for women
how to buy lasix in San Diego
cheap lasix in Saudi Arabia

viagra free trial canada

viagra richtig einnehmen - only today fda approved viagra
cost of 90 viagra pills

viagra sildenafil rezeptfrei

viagraaustralia online net

viagra for sale new zealand - buy cheap viagra online
viagra uk generic

viagra pharmacy in line

generc viagra discount

viagra for sale be - viagra online
buy viagra

the best site viagra sample

viagra richtig einnehmen

purchase viagra outside us - how to use liquid viagra
just try high quality viagra

fastest way to get viagra

much does viagra cost india

buy viagra in pune - we use it buy viagra online us
the cheapest viagra

venta de viagra en peru

viagra hardon

taken too much viagra - viagra south africa buy
generic viagra

what local stores sell viagra

blue diamond generic viagra

f4d731 generic cialissofttabs quanto costa cialis originale

chewable viagra 100mg

a75631 is generic viagra the same india price viagra dth generic viagra pills viagra in italien rezeptfrei


buy lasix without a prescription

purchase lasix from Dallas
where to purchase lasix in Belgium where is better to buy lasix online lasix quick shipment

where is better to buy lasix online
cheap lasix in Czech Republic
buy lasix fedex shipping
how much lasix cost
where to buy lasix online
how to buy lasix in Israel
buy lasix in Portugal

buy viagra from uk stockiests

how to use liquid viagra - generic viagra plus priligy
comprar viagra iquique

come viagra onlin

buy viagra online arizona

comparatif viagra com - pharmacie en ligne viagra
generic viagra no prescriptio

viagra for sale be

uk pharmacy online viagra

cost of viagra on the nhs - buy viagra in mumbai cod
buy viagra from uk stockiests

detached retina viagra use

online genetic viagra store

viagra achat en pharmacie - viagra for female price
medicinesbuying viagra

viagra free trial canada

buy viagra cialis levitra

viagra for sale new zealand - buy viagra online
cuanto viagra debo toma

purchase viagra outside us

problems caused by viagra

order viagra and cialis - buy generic viagra online
buy viagra

chemist viagra prices

viagra generico dalla germania

herbal viagra bestellen - buy generic viagra online
the cheapest viagra

medicinesbuying viagra

of tons viagra

excel herbal viagra uk - buy cheap viagra online

we like it viagra online store

excel herbal viagra uk

viagraaustralia online net - buy generic viagra
how good is 50mg viagra

viagra precios comprar

canadian mail order viagra

prezzi del viagra generico - viagra gel in uk
viagra cheap

cheapest canadian brand viagra


[url=]ciprofloxacin 500 mg tablet price in india[/url] [url=]cialis paypal uk[/url] [url=]can i buy viagra over the counter in india[/url] [url=]best zoloft generic[/url]

the best site viagra sample

caremark utc viagra cost - viagra generic
buy viagra

tramadol viagra


[url=]where can you buy proscar[/url] [url=]hydroxychloroquine 70 mg[/url] [url=]cheap brand levitra[/url] [url=]hydroxychloroquine sulfate tab 200 mg[/url] [url=]chloroquine purchase online[/url] [url=]malegra fxt in india[/url] [url=]citalopram cost usa[/url] [url=]diclofenac pill 50mg[/url]

can women take viagra for men

viagra 50 mg prices - viagra little blue pill
viagra erklrung

viagra preis 100mg generica

viagra gratuit

viagra for female price - how to use liquid viagra
viagra online

viagra cialis simil


[url=]vermox 100mg tablets[/url] [url=]ciprofloxacin 300 mg[/url] [url=]where can i get terramycin[/url] [url=]roche accutane[/url] [url=]canada cialis generic online[/url] [url=]stromectol tablets buy online[/url]


[url=]average cost of viagra 100mg[/url] [url=]lasix brand name[/url] [url=]valtrex no perscrition[/url] [url=]generic cafergot[/url] [url=]viagra/canada[/url] [url=]albendazole price in mexico[/url] [url=]tadacip 20 india[/url] [url=]generic plaquenil[/url] [url=]generic cialis cheapest price[/url] [url=]zofran cost canada[/url]

medication costs 2fted

Awesome content, Thanks! cialis online pharmacy buying prescription drugs canada

viagra by mail

viagra for sale be

le viagra de fakon - buy generic viagra online
comparatif viagra com

best form natural viagra


[url=]flagyl capsule[/url]

Miami Business Lawyer

Great and reliable legal team here!. Miami Business Lawyer


[url=]tadacip 20 mg price in india[/url] [url=]chloroquine order[/url] [url=]cymbalta[/url] [url=]plaquenil generic brand[/url]