Split local and international

South Africa's Top Sites Find your perfect match with low cost dating club.

Split local and international traffic

This is how I go about splitting local and international traffic. If you are wondering why in the world one would want to do that, I'd suggest you have a look at mybroadband.co.za

  1. I set up my router with my local only account.
  2. I set up my PC with RASPPPOE to dail my international account.
  3. I have two .BAT files, one that will enable local sites to be routed through the router and the other to remove the routes created by the first .BAT file.

The files below are based on the routes given by ip.ludost.net.

Enable traffic split

This is the .BAT file to enable the splitting of traffic by routing all local, at least most of it, through the router. Simply copy the text below and save it as something like enable_local.BAT and run the file with the following command line:

enable_local 10.0.0.2

Replace 10.0.0.2 with the IP address of your own router. The routes created by this .BAT file are persistent, so even if you reboot your PC, you don't have to run the file again. If however you want to update the routes with a newer version of the .BAT file, you must delete the routes with the old disable_local.BAT file, before installing the new ones.

Disable traffic split

This is the .BAT file to Disable the splitting of traffic by deleting the routes created by the file above. Simply copy the text below and save it as something like disable_local.BAT and run the file with the following command line:

disable_local


Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/aalwynec/public_html/head.txt:7) in /home/aalwynec/public_html/routing.php on line 2

Updates

Note the date that the above files were updated. If the .BAT files on your PC is older and you want to update them, make sure that you first run your old disable_local.BAT before replacing them with the latest files.

If the "last updated" date of the files on this site is more than 2 weeks ago, you can force an update to this sites files by clicking the button below. Be patient, the updating can take a while. Should you get an error message, please try again later.