Alter.Org.UA  
 << Back Home RU ru   Donate Donate www/www1/www2

UaixRoute -- automatically updates Windows routing tables

About

Many ukrainian internet providers sell packages with unlimited uaix traffic, but paid per-megabyte or limited world traffic. If you can obtain cheaper world traffic, why pay more? However, it is pointless to route ukrainian traffic through such a special channel, and if there is much ukrainian traffic, the channel will be needlessly overloaded. Ideally ukrainian traffic should go through your regular internet provider's gateway, and the world traffic should go through your special channel. Such channels are often set up as virtual private networks (VPN).

The list of subnets in the ua-ix is available, i.e., at http://noc.ua-ix.net.ua/ua-list.txt, and this list is sometimes updated.

For unix boxes scripts have been developed to update the routing tables with the information from ua-ix list. UaixRoute does the same job on Windows boxes. UaixRoute is not a script, it consumes little resources and does not need external packages. It updates the routing tables every 5 minutes. UaixRoute starts from the command line and runs in the background. UaixRoute needs administrative privileges to change the routing tables. If your special channel is a VPN, UaixRoute can automatically "redial" this VPN connection as needed. You must specify the connection's parameters, including the password, in the connection's properties. Don't forget to check the "remember password" checkbox.

Works under Windows 2003, XP, 2000, NT4-sp4. Expected to work with Vista.

Usage

Command line parameters:

UaixRoute [@<list url>] <ip-address of ua-ix gateway> <ip-address of world gateway> [<vpn-connection name>]

Starts UaixRoute as a background process. If you don't need to dial the VPN, don't specify it. By default UaixRoute uses the list of uaix subnets at the url above.

<list url> - address of HTTP resource with list of UA-IX networks. This list must be provided by your ISP. If your ISP doesn't provide such list, you may get it directly from UA-IX core router: http://noc.ua-ix.net.ua/ua-list.txt.

<ip-address of ua-ix gateway> - IP-address of the gateway inside VPN-tunnel. This is not the same IP-address, which you to specify VPN-server. You can get to know proper address either from you VPN-proviter tech-support, or by issueing the following command:

tracert google.com

you will get something like this:

>tracert google.com

Tracing route to google.com [72.14.207.99]
over a maximum of 30 hops:

  1    10 ms    10 ms    10 ms  landing-master.netassist.kiev.ua [195.214.208.1]
  2    10 ms    10 ms    10 ms  Junic-ge-0-0-0-2000.netassist.kiev.ua [195.214.208.162]
  3    10 ms    10 ms    10 ms  google-peer.netassist.kiev.ua [195.214.208.73]
  4    40 ms    40 ms    40 ms  209.85.241.50
  5    50 ms    40 ms    40 ms  209.85.248.182

you need IP-address of the 1st router (marked with bold text). In given case it would be 195.214.208.1.

<ip-address of world gateway> - IP-address of your ISP gateway or your local router. This is the same IP-address, which you enter in network card configuration. You can verify it by issueing the following command (don't forget to replace my.vpn.provider with address of your VPN-provider):

tracert my.vpn.provider

you need IP-address of the 1st router, like in previous check. But it would be different address.

Example:

UaixRoute 10.8.0.1 192.168.0.1 OfficeVPN
UaixRoute @http://my-favorite-isp.net.ua/uaix.txt 10.8.0.1 192.168.0.1 OfficeVPN
UaixRoute @http://noc.ua-ix.net.ua/ua-list.txt 195.214.208.1 192.168.0.1 NetassistVPN

If UaixRoute is already running, this command tells it to shut down. The shutdown will occur at the next update or redial, ar in 5 seconds timeout.

UaixRoute --exit

UaixRoute creates a log, uaixroute.log. By default, UaixRoute logs only errors and route table update messages. If you want to log maximum debug information, run UaixRoute with the --verbose flag. If you only want to log changes in the routing tables, use the --changes flag.

License


UaixRoute is freeware. Use at your own risk.
© atykhyy, 2007.

Download



uaixroute_v1.rar/tgz (25.2 Kb/26.7 Kb)
  • Fixed some bugs in VPN-interface detection in some specific cases. E.g. when gateway IP does not belong to network, coresponding to client's IP and network mask.
  • Now --exit terminates session in 5 seconds and does not wait for end of VPN session.
  • Error messages are made more human-readable.
    2008.12.12

    uaixroute.rar/tgz (7.5 Kb/7.8 Kb)
    2007.10.26



    Please, send your comments and propositions here: Mail to atykhyy@gmail.com  

  • designed by Alter aka Alexander A. Telyatnikov powered by Apache+PHP under FBSD © 2002-2017