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.

Situation

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)

Problem

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".

Solution

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}')
ETH0_IP_PUBLIC="YOUR.PUBLIC.IP.ADDRESS"
$IPTABLES -t nat -A OUTPUT -d $ETH0_IP_PUBLIC -j DNAT --to-destination $ETH0_IP

atdoewpk

w350oik d49geu

You actually stated that adequately.
canada online pharmacies rx pharmacy

d10izoz p502ks

Thanks. Quite a lot of facts!
canadian pharmacy buying prescription drugs canada

viagra 100 roma

click now viagra buying

https://viagrafornow.com/ - viagra without a doctor prescription canada

viagra over the counter walmartle viagra levitr

https://viagrahere20.com/ - buy viagra

viagra sale

zrlaebhg

kdkxpiwr

tjctfhpd

w87gmdh a80doa

Thanks, I value it! rx pharmacy drug prices comparison

cialis in luxemburg

website cialis

https://cialisverygoodn.com/ - venta cialis 20 mg chile
cialis

generic cialis garantito

Sexy Dating in Chennai

Hot Greet welcome to all or any my dear companions in Simmi Nadar Chennai Escort for all the lovely young ladies of all universe introducing to everybody. They're going to likewise satisfy their life by satisfying all the goals in their existence with a Chennai Call Girl of little to huge level.
http://www.rajescortservice.com/chennai-escorts.html
https://simmiescorts.blogspot.com/
https://in.pinterest.com/simmiescorts/boards/
https://dribbble.com/chennaiescort10/about
https://www.behance.net/chennaiescort10
https://www.linkedin.com/in/simmi-nadar-3938381b3/
https://www.instagram.com/chennaiescort10/
https://github.com/chennaiescort10

cialis generic 5mg

cialis suave genrico

https://cialisverygoodn.com/ - genaric cialis cheap red pill
discount generic cialis pro

cialis buy online in nz

is cialis made generically

cialis generika cipl

https://cialisverygoodn.com/ - generic cialis online
medicine cialis

comprare cialis rom

cialis online canadian pharmacy jkxrdnrj

best online pharmacies canadian pharmacy viagra canada online pharmacy viagra cialis usa pharmacy cialis and pharmacy
online pharmacies in usa canada pharmacies online cialis in usa pharmacy generic cialis online pharmacy canadian pharmacy for viagra
canada pharmacy online online pharmacies canada canadian pharmacy without prescription viagra online pharmacy online canadian pharmacy

link for you cialis buy uk

cialis costo farmacia

https://cialisverygoodn.com/ - online pharmacy uk cialis soft
generic cialis online

cialis buy online in nz

cialis acheter in hilversum

cialis se vende con receta

https://cialisverygoodn.com/ - generic cialis online
cialis online

buy branded cialis uk

s839pd5 t17nbf

Point effectively taken!! canada drug pharmacy canadian pharmacy uk delivery

cialis purchase where

cialis kaufen kln

[url=https://cialisverygoodn.com/]is cialis made generically[/url]
online cialis daily

cialis generic tadalafil 20

cialis 20 mg euro

look there rx cialis

https://cialisverygoodn.com/ - cheap cialis online
cialis bon compte

acheter cialis pas cher forum

20 mg cialis baratos

cialis once a day reviews

https://cialisverygoodn.com/ - discount generic cialis pro
generic cialis soft female

buy cialis online cialis

look there cialis uk

cialis bestellen lastschrift

https://cialisverygoodn.com/ - generic cialis legal in uk
online cialis

visit web site cialis in uk

confronto levitra cialis onlin

20 mg cialis baratos

https://cialisverygoodn.com/ - cialis forum doctissimo
cialis 5mg tab price

cialis boutique

business plan writers sacramento ca

0bcc11 visit web site fast viagra

sildenafil price 100mgcialis a da

online cialisbuy powerpoint presentation

cheap cialis onlineviagra dosage result

viagra online

cialis priligy zusammen

how to use female cialis

https://cialisverygoodn.com/ - cheap cialis
cialis 40mg 60mg

only for you cialis 100mg

cialis bestellen gnsti

cialis priligy zusammen

https://cialisverygoodn.com/ - cialis 20mg suisse
cialis

ordering cialis gel

o acheter cialis en bern

cvs cialis generic

https://cialisverygoodn.com/ - us farmer cialis
cialis bestellen gnsti

the best site usa cialis

u563yx1 y45poa

Thanks! Wonderful information! canada pharmaceuticals online legal canadian prescription drugs online

we use it canadain cialis

cialis paypal italia

https://cialisverygoodn.com/ - look there cheap fast cialis
order cialis online pharmacy

cialis oral jelly

cialis priligy zusammen

buy branded cialis uk

https://cialisverygoodn.com/ - we use it cialis online store
dosages du cialis

cialis generika wirkung

i43con4 v408vb

Incredible many of very good info!
mail order pharmacies ed drugs

Puffland

Puffland is one of the oldest and most trustworthy online cannabis retailers in Canada. Our aim is to provide new and regular cannabis users with the most premium products nationwide. Whether they are looking for cannabis strains, cannabis edibles (like CBD gummies), CBD oil products, weed vape pens, concentrates (Rick Simpson Oil) or tinctures, we only curate and sell the best brands and products so that our customers can safely enjoy their cannabis experience while benefiting from the best prices and superior customer support. No cannabis users should have to choose between premium quality and low prices, that's why they choose to buy weed online in Canada with Puffland!

h25chyf s55reo

Effectively spoken really. ! canadian pharmacies that are legit ed meds online

cialis professional india

can you take viagra to bali

buy viagra online

online viagra

sale australia clomid

it's minimal to minify when I go to indoor something. clomid 25mg ylor any other placenta; for the Gazabo is no brittle

cialis 20mg notice

only here purchase of cialis

generic cialis

cheap cialis onlinebest phd online

generic viagra

viagra cheapviagra pils

viagra sur internet

viagra generiquecialis online store uk

buy cialis online

cialis online

cialis cheap canada

how to use female cialis

[url=https://cialisverygoodn.com/]cheap cialis online[/url]
generic cialis online

cialis 5 mg cost walgreens

viagra pfizer 100mg

viagra without prescription canada pharmacy viagra brand at low price healthy man viagra Viagra Samples from Pfizer pfizer brand viagra cheap ed meds online ed medicines generic for erectile dysfunction ed medications best ed medication what are the best generic ed drugs online erectile dysfunction medications ed medications compared cheap ed medication ed medications online ed drugs online best erectile dysfunction medication in canada ed drugs meds for ed erectile dysfunction medications sold in canada erectile dysfunction drugs generic ed drugs cheap erectile dysfunction drugs-canada canadian erectile dysfunction drugs ED medication order erectile dysfunction medication generic drugs for erectile dysfunction erectile meds ed drug cost comparison buy erectile dysfunction drugs generic ed medication erectile dysfunction medication prices ed meds on line cheap ed drugs best erectile dysfunction drugs for sale online erectile dysfunction drugs online meds for erectile dysfunction generic ed meds erectile dysfunction drugs canada ed drug best ed drug best deal on ED meds cheap ed meds medication from canada ed erectile dysfunction generic name for ED drugs buy erectile dysfunction drugs online cheap erectile dysfunction medication generic erectile dysfunction medications erectile dysfunction drugs comparison impotence drugs online common drugs for ed generic impotence drugs ed meds cost effective ed drugs canadian erectile dysfunction drugs rosa impex pvt ltd viagra generic synthroid vs levoxyl buy amoxicillin 500mg no prescription

ordine di giudizio viagra

what does cialis do

cialis italia

acquistare cialis genericobuy female viagra pills

online viagra

online viagraviagra mail order usa reviews

viagra kaufen

viagra kaufen rezeptfrei

cialis en ligne en australie

cialis to buy in new zealand

https://cialisverygoodn.com/ - super cialis best price
usefull link cialis costs

mg 10 cost cialis

cialis canadian pharmacy zxxjrcer

viagra india pharmacy [url=https://1borsa.com/35yri]canadian pharmacies generic ed medication[/url] best canadian pharcharmy online cialis pharmacy online pharmacy without prescription
us pharmacy for cialis [url=http://due.im/short/1e2S]canadian pharmacies without a prescription[/url] overseas pharmacy canada online pharmacies generic cialis canada pharmacy online
canadian pharmacy com [url=https://onlineuniversalwork.com/3aodl]canadian pharmacies generic ed medication[/url] viagra pharmacy canadian cialis online pharmacy cialis-canadian pharmacy

viagra online australia review

440931 google groups buy viagra cheap

https://itsviagranew.com/

cialis vs viagra

viagra without a prescription usa canadian pharmacy online no script price of 100mg viagra viagra overnight delivery free viagra samples prescription pfizer brand viagra cheap ed meds online ed medicines generic for erectile dysfunction ed medications best ed medication what are the best generic ed drugs online erectile dysfunction medications ed medications compared cheap ed medication ed medications online ed drugs online best erectile dysfunction medication in canada ed drugs meds for ed erectile dysfunction medications sold in canada erectile dysfunction drugs generic ed drugs cheap erectile dysfunction drugs-canada canadian erectile dysfunction drugs ED medication order erectile dysfunction medication generic drugs for erectile dysfunction erectile meds ed drug cost comparison buy erectile dysfunction drugs generic ed medication erectile dysfunction medication prices ed meds on line cheap ed drugs best erectile dysfunction drugs for sale online erectile dysfunction drugs online meds for erectile dysfunction generic ed meds erectile dysfunction drugs canada ed drug best ed drug best deal on ED meds cheap ed meds medication from canada ed erectile dysfunction generic name for ED drugs buy erectile dysfunction drugs online cheap erectile dysfunction medication generic erectile dysfunction medications erectile dysfunction drugs comparison impotence drugs online common drugs for ed generic impotence drugs ed meds cost effective ed drugs canadian erectile dysfunction drugs rosa impex pvt ltd viagra vs cialis amoxicillin online

generika cialis kaufen

we like it cialis best buy

https://cialisverygoodn.com/ - how long does cialis work
cheap cialis

generic cialis farmacia

halifax personal loan rates

we use it rx online viagra

buy viagra

viagra cheapcan i get viagra bahamas

online viagra

viagra

cialis 20 mg cheap online

follow link brand name cialis

https://cialisverygoodn.com/ - cialis 5mg tab price
cialis daily pricing australia

cialis generico consegna rapid

viagra online pharmacy tlwdhhzy

online pharmacies without prescription canada online pharmacy viagra viagra online pharmacy canadian pharmacy cialis 20mg canadian pharmacy - cialis
online canadian pharmacies generic cialis canada pharmacy online canadian pharmacies shipping to usa canadian pharmacy online viagra cheap cialis online canadian pharmacy
pharmacy rx one 60 mg cialis viagra canada pharmacy canadian overnight pharmacy cialis in canadian pharmacies cialis canadian pharmacy