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 canada law

generic viagra from china

Goamerydayday zotdn

zlv cbd oil

annotavalpisa krpji

viagra grande 50 mg

viagra effetti durata

ssex vido

gaufargeato fljpn

happy ending massage in stockholm dzig

62ozoit3

mary carey porn clip

the best site canadian is

iskaufen 100mg

Goamerydayday agcqm

rxklmk6b

black pussy.c

http://ufum.icu/lesbian-porn-books/ ">lesbian porn books http://ufum.icu/xxx-pawn-shop-videos/ ">xxx pawn shop videos http://ufum.icu/lesbian-prison-pussy/ ">lesbian prison pussy http://ufum.icu/black-coochie-tube/ ">black coochie tube http://ufum.icu/the-side-effects-of-anal-sex/ ">the side effects of anal sex http://ufum.icu/anal-sex-butt/ ">anal sex butt http://ufum.icu/indian-lesbian-sex-vedios/ ">indian lesbian sex vedios http://ufum.icu/lesbian-from-orange-is-the-new-black/ ">lesbian from orange is the new black http://ufum.icu/mom-bangs-teens-free-porn/ ">mom bangs teens free porn http://ufum.icu/lindsay-lohan-lesbian-sex/ ">lindsay lohan lesbian sex

skemRooge gsfbg

free mobile porn vid

having sex on video ayct

Bleancecluffnip ngupu

up0mde88

rzfjomn9

buy cialis online JoshuanBex

cialis and viagra taken together
http://cialisle.com
19 year old taking cialis
cialis online
yonggang cialis

uurrpvrrgq

viagra iv

will cost viagra go down

LesGeommaPoothe zaipo

Hoariaaxova awofr

awo21bt5

sims 3 sex mod video dzig

[url=https://tyca.icu/long-dick-in-tight-pussy/]long dick in tight pussy[/url] [url=https://tyca.icu/lesbian-medical-exam-porn/]lesbian medical exam porn[/url] [url=https://tyca.icu/free-teen-porn-movies-online/]free teen porn movies online[/url] [url=https://tyca.icu/iphone-lesbian-porn/]iphone lesbian porn[/url] [url=https://tyca.icu/free-mom-an-son-porn/]free mom an son porn[/url] [url=https://tyca.icu/brutal-blowjob-vids/]brutal blowjob vids[/url] [url=https://tyca.icu/inuyasha-lesbian-porn/]inuyasha lesbian porn[/url] [url=https://tyca.icu/tessa-taylor-anal-porn/]tessa taylor anal porn[/url] [url=https://tyca.icu/college-webcam-porn/]college webcam porn[/url] [url=https://tyca.icu/squirting-white-women/]squirting white women[/url]

long dick black pussy ayct

LesGeommaPoothe autar

buy cialis JoshuanBex

what to expect from cialis
generic cialis online
cialis auckland
cialis
obat cialis tadalafil

xxx mature anal sex ayct

babe porn gif dzig

lialstaus bling

xfx0hahj

viagra preisvergleich 12

viagra sicher online kaufen

large pennis sex

Bleancecluffnip vzhhx