Skip to content

Instantly share code, notes, and snippets.

View romerosergio's full-sized avatar

Sergio Romero romerosergio

  • Barcelona, Spain
View GitHub Profile
@romerosergio
romerosergio / spamhaus2quagga.sh
Created December 4, 2018 11:18 — forked from dotysan/spamhaus2quagga.sh
Run as hourly cronjob to sync the Spamhaus DROP/EDROP lists into quagga.
#! /bin/bash -e
#
# maintain spamhaus blacklists as quagga prefix filters
#
cd ~/net
wget -nv -N http://www.spamhaus.org/drop/{,e}drop.txt
re1='^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+) '
re2='^([-+])([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/[0-9]+)$'
@romerosergio
romerosergio / bgpd.conf
Created December 4, 2018 11:18 — forked from rlaager/bgpd.conf
This fork does BGP announcements in a manner intended to be compatible with SpamHaus's BGPf BGP feed. The router you're connecting to should set the next-hop to a null-routed IP (e.g. 192.0.2.1).
hostname HOSTNAME
log syslog
router bgp 65190
bgp router-id IP
neighbor ROUTER remote-as AS
neighbor ROUTER password PASSWORD
neighbor ROUTER ebgp-multihop 255
neighbor ROUTER prefix-list deny-all in

Keybase proof

I hereby claim:

  • I am romerosergio on github.
  • I am romerosergio (https://keybase.io/romerosergio) on keybase.
  • I have a public key whose fingerprint is CA35 C08B 876F 7E26 9061 8070 5FDB 6496 4756 15DE

To claim this, I am signing this object: