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

which is better viagra or stendra

ingredients in viagra
generic viagra 2017
buy viagra online without a prescription

where can you get a viagra prescription online 2018

viagra alternative over the counter
buy viagra
viagra strength

kamagra oral jelly review forum wit

kamagra store reviews http://kamagrabax.com/ - kamagra oral jelly review kamagra jelly kamagra oral jelly 100mg uk

kamagra reviews does work wit

the kamagra store coupon http://kamagrabax.com/ - kamagra jelly india kamagra oral jelly kamagra oral jelly come si usa

billiga Porr DVD dzwl40

sprida fitta gallerier https://se.allredandco.co/gratis-big-ass-pornos/ ">gratis Big ass Pornos 4 sätt lesbisk porr https://se.allredandco.co/ebenholts-offentliga-avsugningar/ ">ebenholts offentliga avsugningar sovsal avsugning https://se.allredandco.co/stoersta-gay-porr/ strumpa avsugningar

aasi alainen seksi orja putki arja67

pussys Cuming https://reduq.info/kova-ydin-homo-anaali-porno/ ">kova ydin homo anaali porno persian lesbo porno https://reduq.info/kiimainen-musta-teini-seksiae/ ">kiimainen musta teini seksiä valkoinen tyttö Squirt porno https://reduq.info/hullu-ruiskuttaminen-videot/ omegle suku puoli video

obycycxn

stor dildo porr Pornhub zvrj92

gay sex flytta https://se.hiroes.co/gifta-killar-gay-porr/ ">gifta killar Gay Porr gratis Dick sugande filmer https://se.hiroes.co/unga-hriga-cunt-videor/ ">unga hriga cunt videor gratis Teen Pussy sex https://se.hiroes.co/koen-galleri-svart/ tamil porr serier

viagra results

I all the time used to read article in news papers but now as I am a user of internet so from now I am using net for articles or reviews, thanks to web.

natural supplement for viagra

how to buy viagra without a prescription
buy viagra online https://viaonlinebuy.us buy viagra online
who invented viagra wikipedia

kristin Kreuk Porno lior86

(Lerby) https://ygoda.nu/mammor-har-sex-gratis-videor/ ">mammor har sex gratis videor ebony boob sex https://ygoda.nu/fitta-goer-ont-porr/ ">fitta gör ont Porr gay uncut avsugningar https://ygoda.nu/sex-tonring-scen/ penisar Porr

essay writers college essays

custom essay paper essay writers
custom essays online pay someone to write my essay
best custom essay https://formeessaywriting.com/

who are the girls in the viagra commercials

viagra pfizer online
what are the differences between viagra, cialis, and levitra
is viagra generic now

viagra multiple orgasms

I want to to thank you for this good read!! I definitely loved every bit of it. I have you book-marked to look at new stuff you post…

video of viagra working

how to break up a viagra into small pieces
buy viagra online http://viaonlinebuy.us/ buy viagra online
can you still ejaculate when taking viagra

cialis generic online

ansia da prestazione viagra o cialis cialis medication
ordering cialis cialis generic
generic cialis https://babecolate.com/

gratis sex site HD qclx40

kan du f sexuellt överförbara sjukdomar frn avsugningar https://minorites.eu/stor-dildo-goera-henne-spruta/ ">stor dildo göra henne spruta big dick män Porr https://minorites.eu/teen-pussy-naerbild-gallerier/ ">teen Pussy närbild gallerier mILF sova Porr https://minorites.eu/koen-videous-gratis/ svart tight byxor Porr

herb viagra review

why do you drink grapefruit juice with viagra
original purpose of viagra
what is viagra made of wiki

ldxipucs

kamagra 100mg tablets for sale wit

kamagra 100 http://kamagrabax.com/ - kamagra shop erfahrungen 2014 buy kamagra kamagra oral

phat sexy zadok fotky rqib00

mILF vstrek prsia https://hegibyzi.co/zadarmo-mobiln-porno-strnky/ ">zadarmo mobiln porno strnky retro mama sex https://hegibyzi.co/necenzurovan-zijsk-porno-vids/ ">necenzurovan zijsk porno vids college Boy physicals Gay porno https://hegibyzi.co/lesba-mladch/ fajenie poas spnku

amn porno komiksy fvos20

zadarmo nah ierne dospievajce dievat https://sk.kinobi.co/sexy-eben-teen-creampie/ ">sexy eben Teen Creampie horce Gay Porns https://sk.kinobi.co/tori-ierna-hardcore-porno/ ">tori ierna hardcore porno naozaj gay porno https://sk.kinobi.co/lesbick-akty/ vek maika a koris

npdxeoil

how much does viagra cost at cvs?

when should i use viagra
viagra lawsuit settlement
caverta vs viagra

funny about me bio dating site rvpq44

beste iPhone dating app 2014 https://aamos.nu/mature-singles-alleen-matchmaking-beoordelingen/ ">mature singles alleen matchmaking beoordelingen casual Dating Avis https://aamos.nu/dating-wet-in-ny/ ">dating wet in NY cool citaten voor dating sites https://aamos.nu/azubi-snelheid-dating-mg/ chase dating blog

homemade viagra for male

what year did viagra for women come out
viagra online viaonlinebuy.us viagra online
which is better viagra or cialis or levitra

helem tablеts lebihbaik

tablets http://tabletswalmart.com - tablеts list sparrow tаblеts list анализ

dissertation acknowledgements srvrddxMitsFlilezce

dissertation synonym https://dissertationyjx.com/ - dissertation help dissertation outline dissertation database dissertation completion fellowship

cxdtwtpz

gratis leanian Porr srbq36

seka analsex https://se.allredandco.co/ww-analsex/ ">wW analsex bästa avsugning pornsite https://se.allredandco.co/svarta-tjejer-som-har-sex-p-bussen/ ">svarta tjejer som har sex p bussen asiatisk spion cam porr https://se.allredandco.co/indiska-lesbisk-porn-tube/ stora feta bröst och fitta

kpilbwlx

[url=https://prednisone.us.org/]can i buy 10mg prednisone over the counter[/url] [url=https://azithromycin.us.com/]azithromycin online[/url] [url=https://sildenafil4you.us.org/]sildenafil 100 mg[/url] [url=https://priligy365.com/]priligy nz[/url] [url=https://tretinoin365.com/]tretinoin[/url] [url=https://prednisonesale.com/]prednisone 10 mg[/url] [url=https://chydroxychloroquine.com/]buy hydroxychloroquine[/url] [url=https://propeciagen.com/]propecia[/url] [url=https://diflucan.us.com/]buy fluconazole[/url] [url=https://neurontingab.com/]purchase neurontin[/url]

viagra side affects

Hi, I do believe this is a great web site. I stumbledupon it ;) I'm going to come back yet again since i have bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

tegneserieporno gratis nedlasting mazn73

strmpebukse mamma kjnn https://no.allredandco.co/unge-tenring-porno-klipp/ ">unge tenring porno klipp stor Dick shemales jvla https://no.allredandco.co/ibenholt-logg-pics/ ">ibenholt Logg pics skitt sprute https://no.allredandco.co/min-svarte-kuk/ porno Polonia

dissertation binding srvrddxMitsFlilezye

dissertation coach https://dissertationyjx.com/ - dissertation length dissertation synonym dissertation search dissertation examples

high blood pressure viagra

where can i get over the counter viagra
what over the counter pill works like viagra
viagra no spontaneoty

what will a viagra do to a woman

cheap generic viagra overnight delivery
http://viaonlinebuy.us/# - buy viagra online
cocks on viagra

muvis XXX porno kwie99

bella Knox porno filmer https://no.medicinasalternativas.co/xxx-kjnn-vidoes-xxx/ ">xXX kjnn vidoes XXX nakne mannlige mote modeller https://no.medicinasalternativas.co/gutta-munnsex/ ">gutta Munnsex store jenter ridning kuk https://no.medicinasalternativas.co/japansk-afrikanske-sex/ hvor stor er min kuk

viagra 25 mg how long does it take start

buy viagra in canada
buy viagra https://viaonlinebuy.us buy viagra
how to get a viagra hard penis

is there a.female viagra

how do i get viagra or cialis in mesa az
http://viaonlinebuy.us/# - buy viagra online
what does female viagra look like

kamagra stores wit

kamagra rendeles budapest
buy kamagra
kamagra 100mg oral jelly wirkung
kamagra online
kamagra oral jelly sale

ovliv tablеts литература

tablets http://tabletswalmart.com - tablets vertebratene tablеts list acunto

viagra effects on male

why viagra doesnt work for me
viagra online viaonlinebuy.us buy viagra online
viagra wholesale price

ducudbvm