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

cialis free

cialis generic tadalafil 20 mg from india CIALIS
online cialis prescription cialis prescription online lowest price cialis cialis generic cialis black tadalafil
original cialis Cialis active ingredient in cialis
cialis cialis tablet cialis from canada can you take viagra and cialis together cialis for purchase cialis

vad Г¤r analsex fasg68

ryan Gosling stor kuk https://se.danoci.co/cougar-creampie-koen/ ">cougar creampie kön super hjältar porr serier https://se.danoci.co/gay-svart-fet-roev-porr/ ">gay svart fet röv Porr tit massage kön https://se.danoci.co/svart-fitta-katter/ extrem stor svart kuk

jybdhsfezbsfdfegififleconnaredncz

cialis http://pharmcilisa.com/ - cialis online buy cialis cialis cialis daily

best price for tadalafil 20 mg

natural cialis Cialis CIALIS
generic cialis daily Cialis CIALIS Cialis generic viagra cialis
cialis without a doctor prescription Cialis acheter cialis
cialis no prescription for cialis buy brand cialis online uses for cialis cialis canada pharmacy can you buy cialis without a prescription?

hwyhnvxolojelgbsloHidlytdryp

buy viagra https://emtpartsstore.com/ - buy viagra viagra online generic viagra viagra online

canadian cialis online pharmacy

jybdhsfezbsfdfegififleconnarednaf

cialis http://pharmcilisa.com/ - cialis generic cialis generic generic cialis generic cialis

best time to take cialis

Cialis cialis cialis and advil
cost of fda approved generic 5mg tadalafil cialis cialis what is cialis viagra india pharmacy
generic tadalafil vs tadacip experience CIALIS cialis half-life graph
generic cialis online Cialis Cialis canadian pharmacy generic cialis how long cialis to work cialis 10 mg.

vapaa filippiiniläinen porno videot jgoo05

bBW rakastaa anaaliseksiä https://afavo.online/musta-ebony-kypsae-pillua/ ">musta Ebony kypsä pillua iso eebenpuu homo hanat https://afavo.online/identtiset-kaksoset-homo-porno/ ">identtiset kaksoset homo porno pillua clit porno https://afavo.online/auttaa-aeitini-porno/ shemale iso kalu com

sgduyvjglsjdsadevysi

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

bsgsdcdnhajbeimmitteribejuf

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

ningrgtrggififleconnaredaqv

buy cialis http://genericcialls.com/ - cialis daily buy cialis cialis generic cialis

lori rieky stri ewfc60

dospievajci majce sex com https://ileni.online/zadarmo-hardcore-porno-hviezdy/ ">zadarmo hardcore porno hviezdy zadarmo lesbick porno vidioes https://ileni.online/gay-sex-otzky/ ">gay sex otzky vek porno vid https://ileni.online/asain-lesbick-popruh-na/ africk kme Teen Porn

sgduyvjglsjdsadevydx

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

sgduyvjglsjdsadevyjb

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

sgduyvjglsjdsadevyfa

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

nmqwwgbndsloEurobixxdimh

cheap viagra https://cheapnowaaaa.com/ - cheap viagra viagra viagra viagra

the best generic cialis

cialis cialis doses recommended Cialis how to buy cialis Cialis
cialis Cialis generic cialis tadalafil c20 is there a generic cialis available generic cialis in the usa ed pills without prescription cialis without rx
cialis cialis pill tadalafil online pharmacy cialis maximum dosage cialis dose CIALIS

dating kramer guitarer zrqj87

speed dating sur lorient https://konstsidan.nu/dating-websteder-luxembourg/ ">dating websteder luxembourg tinder dating site wiki https://konstsidan.nu/jeg-er-dating-en-udvekslingsstuderende/ ">jeg er dating en udvekslingsstuderende hvorfor er dating s skrmmende https://konstsidan.nu/gratis-svenske-datingsider/ hastighed dating i strre manchester

cialis online svrdxMitsFlilesaz

cialis http://www.ciallisonline.com/ - buy cialis cialis cheap cialis cialis

cheap cialis svrdxMitsFlilebol

online cialis http://www.ciallisonline.com/ - buy cialis cialis generic cialis generic cialis

Cialis

cialis discount coupons cialis 20mg pills Cialis Cialis cialis
cialis 20mg tablets cialis cialis cialis Cialis cialis best ed medicine
canadian pharmacy no prescription what is the cost cialis cialis when will cialis be generic CIALIS does cialis expire

grsvrhnkfsnbssbdsjamerbbi

online viagra https://canadianpharmacyfda.com/ - viagra viagra generic generic viagra viagra online

sgduyvjglsjdsadevyaz

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

ningrgtrggififleconnareduhi

cialis daily http://genericcialls.com/ - generic cialis п»їcialis cialis online cialis online

gay bachelor party sex hujz64

black swinger orgy https://startuphound.co/i-love-black-dick-porn/ ">i love black dick porn ebony xxx videos tumblr https://startuphound.co/lesbian-sex-drawings/ ">lesbian sex drawings gorgeous naked black women https://startuphound.co/enormous-gay-cocks/ perfect pussy porn

sgduyvjglsjdsadevyei

generic cialis https://cialisovnnc.com/ - cialis cialis generic cialis generic cialis

stor kuk deepthroat Tubes frzw17

flicka fr massage porr https://konstsidan.online/mer-frn-spring-apor-xnxx/ ">mer frn Spring apor Xnxx asiatiska r Porr https://konstsidan.online/lesbisk-vampyr-koen-videor/ ">lesbisk vampyr kön videor bBW mexikansk Free Porn https://konstsidan.online/soedra-indiska-porr-roeret/ indian xxx video webbplats

ningrgtrggififleconnarediwv

cialis generic http://genericcialls.com/ - cialis online online cialis cialis daily generic cialis

cialis 5 mg daily

cialis best online source for generic cialis generic cialis in usa female cialis cialis
cialis cialis Cialis tadalafil 5 mg daily generic best prices, victor ny CIALIS cialis cialis
CIALIS cialis and sinus congestion CIALIS CIALIS cialis cialis

can women use cialis

side effects of cialis

CIALIS Cialis buy generic cialis online safe cialis online cialis dosing
cialis super active reviews where can i get cialis cialis Cialis cialis cialis cialis
ed prescription drugs cialis cialis online canada cialis tadalafil 20 mg cialis cost per pill Cialis

cialis

order cialis without prescription can you buy viagra without prescription buy online cialis
cialis canadian generic cialis safe Cialis cialis warnings for cialis
tadalafil 5 mg tablet safe cialis online Cialis
Cialis CIALIS best price for tadalafil 20 mg CIALIS how does cialis work in the body generic cialis without prescription

cialis for sale

Cialis cialis generic price checker Cialis
Cialis CIALIS cialis tadalafil for daily use Cialis
CIALIS cheap cialis from canada cialis without doctor's prescription
Cialis get cialis where to get cialis tadalafil 40 mg is cialis available in generic cialis video

skuton eben priateka umwm75

pln Gay porno https://sk.inzalo.co/sasha-ed-porno/ ">sasha ed porno zadarmo extrmne dospel porno https://sk.inzalo.co/teen-s-malou-maika/ ">teen s malou maika asn porno trubice https://sk.inzalo.co/temnej-ulike-gay-porno/ sexy dmy porno fotky

gay män bil kön zibz70

xXX Porr p nätet https://yqejapec.co/tvingas-blowjob-gallerier/ ">tvingas Blowjob gallerier jennifer kärlek Hewitt porr filmer https://yqejapec.co/sex-med-hotgirls/ ">sex med HotGirls het fru anal sex https://yqejapec.co/naken-platt-oeverkropp-tonring/ stor svart kuk vidios

sgduyvjglsjdsadevykk

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

cialis dose

sgduyvjglsjdsadevyyi

cialis online https://cialisovnnc.com/ - cialis cialis online cialis online cialis

CIALIS

CIALIS do they make a generic cialis best price for tadalafil 20 mg Cialis cialis 5mg daily
CIALIS cialis cialis and prostate health best site for generic cialis cialis Cialis cialis
Cialis what's the maximum dose of cialis cialis overdose how much does generic cialis cost taking cialis cialis

tadalafil doses

5 mg. cialis cialis reviews cialis
Cialis cialis online generic cialis Cialis cali's
cialis when does cialis patent expire ? is cialis available in generic
cialis cialis generic viagra cialis CIALIS cialis without a doctor's prescription canada tadalafil over the counter

xxx videosom glyl57

kurzer schwarzer Mädchen-Sex https://de.pykevu.co/lesben-havin-sex/ ">lesben havin Sex hardcore-Milf-Sex-Fotos https://de.pykevu.co/heisse-babchen-quietschen/ ">heiße Babchen quietschen www xnxx große Titten https://de.pykevu.co/milf-porno-video-downloads/ tang-Sex-Videos

plus de 40 orgie buel01

gant coq blog https://boniw.online/asiatique-massuse-porno/ ">asiatique massuse porno sexy Lap Dance porno https://boniw.online/sexe-fille-chatte-pic/ ">sexe fille chatte pic filles noires sexe com https://boniw.online/jeune-et-serr-chatte/ top amateur porno vido

ningrgtrggififleconnaredoja

cialis online http://genericcialls.com/ - cialis reviews cialis price cialis cialis generic

cialis

cialis/price cialis cialis for sale online
viagra without a doctor prescription from canada best place to buy cialis online Cialis cialis without a prescription CIALIS
CIALIS cialis tadalafil dosage
cialis generic tadalafil overseas Cialis CIALIS is tadalista generic tadalafil cialis costs

cydxttlnk

[url=https://allopurinolm.com/]allopurinol 100 mg[/url]