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

viagra effects on male

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

ducudbvm

radio metrisk dating Bill nye yfjw63

support för Interracial dating https://ocodo.nu/en-pug-s-dating/ ">en pug ' s dating touring krok upp enheter https://ocodo.nu/svart-tjej-dating-vit-kille-beraettelser/ ">svart tjej dating vit kille berättelser lesbisk dating online oss https://ocodo.nu/nepalesiska-dating-storbritannien/ online Dating ämnes rubriker

directions for viagra how to take

why am i getting viagra emails
buy viagra
viagra without a doctor

where to buy viagra in plano texas

cvs drops viagra
how much viagra will it take to see the blue haze
can i take viagra while on amlodipine atenolol

unfaithful tablets italijas

tablets http://tabletswalmart.com - tаblets list ratingdating tablets uberhand

viagra "components"

what viagra looks like
where to buy viagra in uk online
how to make viagra with ginger

what if you took too much viagra

viagra 100 mg 30 tablet nedir
http://viaonlinebuy.us/# - buy viagra online
what mg does viagra come in

cost of viagra 100mg at walmart

I really like it when individuals come together and share opinions. Great site, stick with it!

gratis svart porr movies.com xzsn09

het morsa ha sex https://tifov.nu/fyllig-milf-koen/ ">fyllig MILF kön japansk kön dokumentär https://tifov.nu/gay-avsugning-pov/ ">gay avsugning POV gay Toon porr serier https://tifov.nu/flicka-ge-en-avsugning/ sm avsugningar

what does viagra really do

1/2 viagra porn
buy viagra http://viaonlinebuy.us/ viagra online
where can i get viagra pills

cialis tadalafil

subaction showcomments cialis smile online online cialis buy
best generic cialis price cialis generic
cialis 5 mg best price https://babecolate.com/buy-cialis-online-without.html

grote lul voor mannen cxsj49

mooie jonge naakte tieners https://nl.ijuvov.co/bbw-porno-ebony/ ">bBW porno Ebony bLK tiener anaal https://nl.ijuvov.co/lesbische-films-xxxx/ ">lesbische Films xxxx penish groot https://nl.ijuvov.co/tori-zwarte-blowjob-videos/ nasty creampie porno

how to buy viagra online?

how to make natural viagra for men and women out of water melon and lemons
viagra online http://viaonlinebuy.us/ buy viagra
how to crew viagra headache

what happens when you take viagra and dont have sex

viagra pill first made
http://viaonlinebuy.us/# - viagra online
how long for viagra to kick in

otc viagra us

There is certainly a lot to find out about this subject. I like all the points you've made.

will viagra work with porn only

what does viagra cost
buy viagra
how to purchase generic viagra from india - cenforce

buy cheap generic viagra co uk kamagra oral jelly 100mg wit

kamagra shop erfahrungen 2017 http://kamagrabax.com/ - kamagra oral jelly 100mg reviews kamagra jelly kamagra 100mg oral jelly sildenafil

best herbal viagra

Hello just wanted to give you a quick heads up. The text in your content seem to be running off the screen in Ie. I'm not sure if this is a formatting issue or something to do with internet browser compatibility but I figured I'd post to let you know. The design and style look great though! Hope you get the problem solved soon. Many thanks

dissertation research srvrddxMitsFlileoyk

dissertation proposal https://dissertationyjx.com/ - dissertation editor masters dissertation dissertation examples dissertation binding

dissertation editor srvrddxMitsFlileboq

dissertation acknowledgements https://dissertationyjx.com/ - dissertation format dissertation search п»їdissertation definition dissertation completion fellowship

nigrian dievat s vekou maika htds89

bolestiv porno https://sk.kinobi.co/pussu-pic/ ">pussu pic ste trubice vek pro https://sk.kinobi.co/sex-teen-kurva-vide/ ">sex Teen kurva vide domce twink porno https://sk.kinobi.co/divok-africk-sex-porno/ youTube vide porno XXX

miss viagra

when will viagra be otc
http://viaonlinebuy.us/# - buy viagra
viagra and 5 hour energy

nah ern ena wklj63

co zpsobuje, e eny stkaj bhem sexu https://oryha.online/kurva-tento-velk-ern-pro/ ">kurva tento velk ern pro nejkrsnj ern porno hvzda https://oryha.online/zdarma-insest-porno-videa/ ">zdarma insest porno videa vcarsk orgie https://oryha.online/nov-dospvajc-mma-porno/ dv lesbick milfy svdj teen

centrala Florida dating tjänster qhek61

23 r gammal kvinna som dejtar en 21 rig man https://dimaj.nu/online-dating-rotterdam/ ">online Dating Rotterdam bra dejtingsajter i Singapore https://dimaj.nu/laenk-online-dating/ ">länk online dating casual dating 4 u https://dimaj.nu/aektenskap-inte-dating-ep-10-foerhandsgranska/ dating eko Ranger

does viagra enlarge clit

super bowl viagra commercial
viagra online https://viaonlinebuy.us viagra online
mexico viagra online

new healthy man viagra

viagra canada no prescription canadian pharmacy online cialis best india viagra and price generic viagra with overnight delivery viagra samples from pfizer viagra samples from pfizer 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 tadalista vs cialis amoxicillin for fish and humans

kamagra 100mg tablets wit

kamagra forum opinie
kamagra 100mg
kamagra oral jelly 100mg for sale
buy kamagra
kamagra4uk review

what does viagra do on people that dont need it

when was viagra released
viagra online viaonlinebuy.us buy viagra online
fucking 4 women on viagra

where can i buy viagra online cheap

how much does viagra cost?
walmart pharmacy viagra price
where to buy cheap viagra online

vilka Г¤r riskerna med att ha analsex emms31

asuma gay Porr https://se.ocidet.co/ung-svart-chick/ ">ung svart chick svart amatörer XXX https://se.ocidet.co/gay-koen-svin/ ">gay kön svin gratis pornagraphy https://se.ocidet.co/saett-att-goera-analsex-laettare/ sparv porr serier

is viagra covered by health insurance

if you take viagra how do you get eid of boner
buy viagra http://viaonlinebuy.us/ viagra online
viagra use video

brunette woman in viagra commercial

generic viagra online no prescription
buy viagra http://viaonlinebuy.us/ buy viagra online
how to buy geneeic viagra

farrah mor porno oedy43

lesbiske fisse nrbilleder https://iralo.nu/hot-necked-sex/ ">hot necked sex sexet spandex porno https://iralo.nu/gay-sex/ ">gay sex smuk sort ebony porno https://iralo.nu/ngle-gylden/ piger frste blowjob video

garlic natural viagra

I want to to thank you for this great read!! I certainly loved every little bit of it. I have got you saved as a favorite to check out new things you post…

what happens when a healthy man accidentally takes viagra

Thank you for the good writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how could we communicate?

cost of viagra in mexico

buy viagra pills online
how does viagra work? psychology
viagra discount coupons

kamagra 100mg tablets china wit

kamagra shop erfahrungen 2014 http://kamagrabax.com/ - come si usa kamagra oral jelly kamagra oral jelly kamagra 100mg tablets uk

where can i get viagra over the counter

viagra how young is too young
how to climax when taking viagra
how much money does the military spend on viagra

svart och vit lesbisk fan brrr14

unga röv fitta bilder https://du.rwbilverkstad.online/stor-klitoris-fitta-bild/ ">stor klitoris fitta bild gratis streaming mogen Porr https://du.rwbilverkstad.online/ung-kvinna-som-har-sex/ ">ung kvinna som har sex vt fitta Foto Galleri https://du.rwbilverkstad.online/svarta-hemlagad-koen-videor/ vt vt ebenholts

ehbnpdbtsloEurobixmjfem

generic viagra https://sophiapharmsd.com/ - viagra sale viagra for sale viagra generic viagra for sale