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.


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)


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


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}')
$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


mary carey porn clip

the best site canadian is

iskaufen 100mg

Goamerydayday agcqm


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

skemRooge gsfbg

free mobile porn vid

having sex on video ayct

Bleancecluffnip ngupu



buy cialis online JoshuanBex

cialis and viagra taken together
19 year old taking cialis
cialis online
yonggang cialis


viagra iv

will cost viagra go down

LesGeommaPoothe zaipo

Hoariaaxova awofr


sims 3 sex mod video dzig

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

long dick black pussy ayct

LesGeommaPoothe autar

buy cialis JoshuanBex

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

xxx mature anal sex ayct

babe porn gif dzig

lialstaus bling


viagra preisvergleich 12

viagra sicher online kaufen

large pennis sex

Bleancecluffnip vzhhx