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

down low dating sites



mirtazapine anxiety - remeron 30 mg remeron high mirtazapine 15 mg tablet what is remeron used for

online dating pakistan islamabad

most expensive dating websites



remeron classification - mirtazapine 30mg mirtazapine 15 mg tablet remeron classification remeron 30 mg


Cheap cialis soft buy generic cialis 5mg online

free dating exeter zqfa


escitalopram vs citalopram - citalopram vs escitalopram celexa 40 mg citalopram 40 mg citalopram 40mg

dating for homoseksuelle zqfa

neue dating show auf vox emuo


Generic cialis ship to canada generic sale cialis pills


truths about dating a scorpio

annotavalpisa anowm

senior dating over 60s

magic jack hook up


Buy tadalafil india no prescription cialis Buy Generic Cialis Online cialis 20mg generic

best hookup app in boston


personal dating agent emuo

whos miley dating

Can I Buy Generic Viagra

Generic Viagra In Canada - Best Generic Viagra Sites



prozac vs celexa - citalopram dosing citalopram and alcohol п»їcelexa celexa side effects

viagra from usa pharmacy

viagra online CarlosFutty

can you take viagra and levitra together
where to buy viagra
is viagra illegal in thailand
where can i buy viagra pills
side effects of mixing alcohol with viagra


Incomonut ecrxk


remeron reviews - mirtazapine moa mirtazapine 15mg tablet mirtazapine 30 mg remeron generic name


weaning off effexor - venlafaxine hcl er 37.5 mg effexor withdrawal venlafaxine withdrawal effexor xr weight loss


describe yourself dating example


seroquel withdrawal - seroquel for dementia quetiapine interactions seroquel 25 mg seroquel overdose


dating a paramedic girl emuo

viagra paypal accepted usa

best generic viagra review canadian pharmacy viagra

nasaan na ang dating tayo download emuo