Routing with GeoLoc Database

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

Routing with GeoLoc Database

Postby pierro222 » Jun 15 15 4:09 pm

Hello,

Is there a way to use a IP country database to route internet traffic to a given line ?

Example, :
- I'm browsing www.aaa.net, the corresponfing IP is known as french and then will be routed to internet line A because we have better performances to Europe.
- Im browsing www.bbb.com, the corresponfing IP is known as japanese and then will be routed to internet line B because we have better performances to Japan.

Is it possible to achieve that ?
if not,may you consider it as a feature request.

Thank you in avance,
Pierre.
pierro222
 
Posts: 4
Joined: Jun 15 15 4:02 pm

Re: Routing with GeoLoc Database

Postby adrien » Jun 16 15 12:26 am

HI

WinGate actually has an IP to Country module in it, and every object of type IPAddress has a member called Country.

So it's possible using flow-chart policy to make configuration choices based on the country of the destination IP - e.g. switch behaviour based on Session.ServerIp.Country

You can specify a gateway to use in script as well,

Session.Gateway = "a.b.c.d" (e.g. some IP of a gateway)

so it's possible to do this.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Routing with GeoLoc Database

Postby pierro222 » Jun 18 15 10:49 pm

Perfect, thanks !
Work like a charm.

Last question :
How the IP to country database is updated ?
pierro222
 
Posts: 4
Joined: Jun 15 15 4:02 pm

Re: Routing with GeoLoc Database

Postby adrien » Jun 19 15 8:57 pm

Hi

there's a scheduled task in the IP to Country module which downloads new allocation files from ARIN, APNIC, LACNIC, RIPE and Afrinic daily. These are parsed and when you access the country member of an IP address object, the lookup is made out to the IP to Country module.

We have considered using also a GeoIP database - there is a free one available. These files actually change every day, it's surprising how often they do change.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland

Re: Routing with GeoLoc Database

Postby pierro222 » Oct 22 15 7:36 pm

Hello Adrien,

We are still evaluating your product as a Proxy but we are facing some issue with rules above.
We can put in place the policy with the country of destination IP and it looks like working for some time.
After some hours, the policy has no effect and the traffic is not splitted any more...

Is there any limitation ?
Any way to debug that ?

Thank you in advance and best regards,
Pierre.
pierro222
 
Posts: 4
Joined: Jun 15 15 4:02 pm

Re: Routing with GeoLoc Database

Postby adrien » Oct 22 15 10:36 pm

Hi

it shouldn't change behaviour like that.

You could log the country and/upstream gateway to W3C usage logging.

Basically assign the values to Session data with

Session.SetData("Country", Session.ServerIp.Country);
Session.SetData("Gateway", Session.Gateway);

Then in the format tab for the WWW proxy usage logs, add 2 more columns, choose "Session data", and enter "Country", and "Gateway" for the names.

Then you will see whether it's getting the country right, and/or assigning the correct gateway for the requests.

Regards

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron