BGP Routing Tables

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
TheRodent have some nifty code on his site, I went in and downloaded a txt version of those routing tables for my own purposes.

Because I don't have any software to interpret the table, I would love it if someone could explain to me how it actually works? Tutorials I found on the web only consists of how to load balance and what not, not how to read the data and check... "ah, this ip address should go there in my little program to route to that ip address, and this little thingy is the port and this means that free porn is available at all times"

etc

fanks guys

(and yes, I'm bored, so I'm going to try and write a simple port forwarding program in vb.net that uses BGP Routing table data to send/receive data through a specific connection)

Sentech, 99% downtime guarunteed!
 

TheRoDent

Cool Ideas Rep
Joined
Aug 6, 2003
Messages
6,218
I'm assuming you're wanting to do this on win32?

You could actually do better.

If (at a command prompt) you do a "route /?" you will find out what the route utility can do for you.


What you would want to do is take that BGP table, and execute:
route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2 (for each route in the BGP table)

where 157.0.0.0 is the subnet from the BGP table, mask has to be calculated, and 157.55.80.1 is the IP address of the device you want to route traffic for that network through.

The "IF 2" part is unimportant, as windows will try to figure out which device has that 157.55.80.1 address. The metric bit is unimportant too.

Basically, what that can give you is a small proggie that will configure routing on your box to send local traffic via one interface, and use the default gateway for all other traffic.

So, you instruct the one connection to not act as a "default" gateway, but add all the za BGP routes to it, manually.

Then, you configure the other interface to act as a "Default" gateway, and all traffic that isn't explicitly routed will then go thru that interface.

Should make it easier than trying to use .NET to pass through a socket connection.

To calculate the subnets, you have to look at the BGP table. Each route has a /xx trailing it (e.g. xxx.xxx.xxx.xxx/24).

The /24 means that 24 bits make up the subnet. Thus, a /24 address's route would be 255.255.255.0 (24 bits make up that subnet, the rest is zero)

If you know a bit of binary, you should be able to build a small algorithm that will construct the proper subnet masks for the route.exe command for you.

Some of the networks from the bgp table are listed without subnets, example: 165.146.0.0
You have to catch these too. Without any specific subnet, it means they default to their "normal" subnet. In the 165.146.0.0 case you can assume that 255.255.0.0 is the subnet.

Reading this, it all sounds a bit confusing, but that's because it is [;)]

<center><h6> MyWireless <s>Hacks</s> Tweaks & Tech Info || Have you checked the fawking FAQ? <br /> <font color="red">Tired of Sentech's bad service? Want to compare speeds? We at least listen...</font id="red"></h6></center>
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
yea i know binary fanks to my N3 in electronics (not that I remember much of it)

The add route sounds like it could work, the reason for doing it via a .NET app is so monkeys will be able to setup routing between two interfaces without any prior knowledge of... well... anything

If my idea works I should be able to sell it to *supressed* and be able to start my own business and maybe even franchise [:)] One thing I learnt, get something to generate revenue for you to start your own business with 0% loans and keep. That way I can do what I want. Plus I'm getting seriously sick of PC's and I miss my gaming terribly, so going a differnt route (no pun intended) seems the right thing to do at this stage

Thanks for the help!

Hell, my gran on a scooter with a memory stick is faster than Sentech's MyWireless!
 

Perdition

Expert Member
Joined
Dec 17, 2003
Messages
1,660
Hehe, yep that would be useful.... and I'm sure users of said product will appreciate having to install the 21MB .NET Framework redistributable just to generate routing tables [;)]
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
The users can blow me if they don't want to use it, but those that DO want to use it are going to pay for it....

The routing thing is just the tip of the iceberg that I'm busy with...

Oh and TheRodent, yea, thats why I said it would be easy :)

Hell, my gran on a scooter with a memory stick is faster than Sentech's MyWireless!
 

Dean_Henstock

Well-Known Member
Joined
Mar 31, 2004
Messages
408
noone, if your intrested, I have already designed a small vb app that shells the route.exe with the correct commands, if you want me to send you a copy of the source ?

Keep Surfing
 

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
yea sure friendz at acidrazor dot com

thanks man

Hell, my gran on a scooter with a memory stick is faster than Sentech's MyWireless!
 
Top