5) setup the init nodejs script
6) ... magic!
-
-
-
-
-BGP Daemon in Node.js
-=====================
-
-simple implementation of the bgp protocol stack - set your ip address and your AS and it'll publish a
-number of prefixes (can be changed part way down the code - up to about a million prefixes works without
-much drama)
-
-
var sequentialIPs = true;
var usePrivateRanges = false;
var randomNextHop = false;
-var timeBetweenUpdates = 1000;
+var timeBetweenUpdates = 20;
var routesPerUpdate = 100;
-var updatesPerInterval = 20;
+var updatesPerInterval = 40;
// ---- vars
ipc = 1+Math.round(Math.random()*254);
- // TODO remove this
- ipa = 1;
- ipb = 1;
-
if(!usePrivateRanges) {
if(ipb == 168 && ipa == 192) ipb++;
if(ipa == 10) ipa++;