infowolfe / exabgp-edgerouter Goto Github PK
View Code? Open in Web Editor NEWExaBGP based automated blocklist for Spamhaus DROP/EDROP and Emerging Threats blocklists for Ubiquiti EdgeRouters (and possibly Vyatta vRouters)
ExaBGP based automated blocklist for Spamhaus DROP/EDROP and Emerging Threats blocklists for Ubiquiti EdgeRouters (and possibly Vyatta vRouters)
16:10:29 | 20997 | configuration | performing reload of exabgp 4.2.11
16:10:29 | 20997 | configuration | not reloaded, no change found in the configuration
16:10:29 | 20997 | configuration |
16:10:29 | 20997 | configuration | syntax error in section
16:10:29 | 20997 | configuration | line 1: group AS64512 {
16:10:29 | 20997 | configuration |
16:10:29 | 20997 | configuration | section group is invalid in root,
Hi,
Great project! I'm testing this for possibly rolling out to a couple of networks we maintain.
However, i'm getting it having a bit of a tizzy whenever upstream remove an ip from the RBL. It will sit there and redownload the rbl from the peer, withdrawing the route every second. Over and over until the process is cleared.
As an example:
Mar 4 19:54:30 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:30 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:31 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:31 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:31 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:31 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:32 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:32 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:32 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:32 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:32 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:32 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:33 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:33 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:33 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:33 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:33 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:33 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:34 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:34 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:34 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:34 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:34 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:34 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:35 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:35 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:35 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:35 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:36 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:36 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:36 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:36 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:36 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:36 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:37 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:37 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:37 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:37 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:37 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:37 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:38 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:38 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:38 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:38 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:38 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:38 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:39 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:39 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:39 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:39 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:40 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:40 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:40 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:40 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
Mar 4 19:54:40 addisrtr exabgp[7524]: processes Command from process droproutes : withdraw route 159.65.160.55/32 next-hop self community [64512:666]
Mar 4 19:54:40 addisrtr exabgp[7524]: reactor Route removed : 159.65.160.55/32 next-hop 10.1.1.200 community 64512:666
My Config hasn't really changed much from the defaults provided apart from the router and local addresses:
#!/usr/bin/env exabgp
group AS64512 {
router-id 10.1.1.200;
local-as 64512;
local-address 10.1.1.200;
peer-as 64512;
neighbor 10.1.1.254 {
family {
ipv4 unicast;
ipv4 multicast;
}
}
family {
ipv4 unicast;
ipv4 multicast;
}
process droproutes {
run /usr/local/bin/blocklists_simple.py;
}
}
I have set mins to 1440 (IE expire every 24 hours) and sleep to mins * 5
Do you have any ideas where I might start looking?
Thanks!
Dear Chip,
May I ask how did you overcome the inactive routes? I'm trying to set this up; but I keep ending up with:
admin@er01:~$ show ip route 8.8.8.8
Routing entry for 8.8.8.8/32
Known via "bgp", distance 200, metric 0, External Route Tag: 0
Last update 00:04:14 ago
0.0.0.1 inactive
The 0.0.0.1 entry seems right:
sjcjonker@sjc-er01:~$ show ip route 0.0.0.1
Routing entry for 0.0.0.1/32
Known via "static", distance 1, metric 0, External Route Tag: 0, best
Thanks in advance,
Stijn
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.