Activity Summary
- 6109 days inactive
- 6109 days old
- pacnog@pacnog.org
- 2 participants
- 2 comments
j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
All-
I've got a customer who wants to mirror their website off-island, and I was wondering if there was a good way to direct requests to that site by geographic location. For example, for customers on-island I would like them to hit the local server. All other's should go to the remote location.
Now, this is a specific situation, but does anyone know of a more general way to route packets based on the source address and rewrite the destination address?
For the previous situation, I've decided to go with using a rewrite on the web server to redirect based on the requester's IP address (using the free database at http://www.hostip.info/), although split DNS was one thing that was considered.
Thoughts?
- Alo
------------------------------------------------------- Aloiamoa Anesi, Jr. Network Operations Engineer Blue Sky Communications 478 Laufou Shopping Ctr Pago Pago, American Samoa 96799 -- Ph: +1.684.699.2759 ext 1098 Cell: +1.684.258.1098 VoIP Business Hours: 1098@voip.bluesky.as VoIP After Hours: 2098@voip.bluesky.as
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
On Jul 9, 2006, at 11:47 AM, Alo Anesi wrote:
All-
I've got a customer who wants to mirror their website off-island, and I was wondering if there was a good way to direct requests to that site by geographic location. For example, for customers on- island I would like them to hit the local server. All other's should go to the remote location.
Is this a dynamic web content or static ? or semi-static (i.e, database backend, and a fixed update period. ? static and semi- static sites are easy.. the hard ones are the dynamic ones.
Now, this is a specific situation, but does anyone know of a more general way to route packets based on the source address and rewrite the destination address?
We use dns-views to re-direct web content over to different servers based on where it's originating from. In case of it coming through the IX, we give them a local IP. If the request is coming from an IP not present at the IX, we give them an overseas IP address.
And of course, the NS server are present on both sides of the satellite, so people on other end of the satellite don't have to traverse the satellite for DNS queries.
The list of IPs is dynamically generated every half hour by doing diffs of routes we are seeing at the local IX.
-- gaurab
/////////////////////////////////////////////////////+9779851038080 gaurab at lahai dot com
Raymond/Gaurab,
DNS Views sounds promising. I am running BIND9 on all of our DNS servers, so I will definitely be looking into that option.
It is a dynamic site with a SQL backend. The client is adamant about the off-island replication, even though I stressed that the SQL updates (even incrementals) over satellite would be a bottleneck.
Thanks for the input! =)
- Alo
________________________________
From: Gaurab Raj Upadhaya [mailto:gaurab@lahai.com] Sent: Mon 7/10/2006 4:23 PM To: Alo Anesi Cc: PacNOG Subject: Re: [pacnog] Ways to direct traffic based on geographic location
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
On Jul 9, 2006, at 11:47 AM, Alo Anesi wrote:
All-
I've got a customer who wants to mirror their website off-island, and I was wondering if there was a good way to direct requests to that site by geographic location. For example, for customers on- island I would like them to hit the local server. All other's should go to the remote location.
Is this a dynamic web content or static ? or semi-static (i.e, database backend, and a fixed update period. ? static and semi- static sites are easy.. the hard ones are the dynamic ones.
Now, this is a specific situation, but does anyone know of a more general way to route packets based on the source address and rewrite the destination address?
We use dns-views to re-direct web content over to different servers based on where it's originating from. In case of it coming through the IX, we give them a local IP. If the request is coming from an IP not present at the IX, we give them an overseas IP address.
And of course, the NS server are present on both sides of the satellite, so people on other end of the satellite don't have to traverse the satellite for DNS queries.
The list of IPs is dynamically generated every half hour by doing diffs of routes we are seeing at the local IX.
-- gaurab
/////////////////////////////////////////////////////+9779851038080 gaurab at lahai dot com