update irr-filter & import limit

production
admin 2023-03-03 15:26:41 +00:00
parent 40f4df84d5
commit 43aed88e79
3 changed files with 6 additions and 4 deletions

View File

@ -40,8 +40,8 @@ steps:
image: debian:latest
commands:
- apt-get update -y && apt-get install bgpq4 git -y
- echo "define $(bgpq4 -tbl DOWNSTREAM_ASN AS-NET186)" > util/irr-filter.conf
- echo "define $(bgpq4 -6bl DOWNSTREAM_PREFIXES AS-NET186)" >> util/irr-filter.conf
- echo "define $(bgpq4 -tbl DOWNSTREAM_ASN AS-NET186 -S RIPE,ARIN,APNIC,AFRINIC,LACNIC -L 3)" > util/irr-filter.conf
- echo "define $(bgpq4 -6bl DOWNSTREAM_PREFIXES AS-NET186 -S RIPE,ARIN,APNIC,AFRINIC,LACNIC,RPKI -A -R48)" >> util/irr-filter.conf
- echo "net.186526.xyz" >> CNAME
- git rm -f ansible
- name: push to repo

View File

@ -22,5 +22,7 @@ template bgp pub_downstream {
ipv6 {
import where downstream_import_filter(6939);
export where downstream_export_filter(6939);
import limit 50;
};
}

View File

@ -1,8 +1,8 @@
# Example:
# define DOWNSTREAM_ASN = [ 200536 ];
# use bgpq4 generate this file:
# echo "define $(bgpq4 -tbl DOWNSTREAM_ASN AS-NET186 -S RIPE)" > util/irr-filter.conf
# echo "define $(bgpq4 -6bl DOWNSTREAM_PREFIXES AS-NET186 -S RIPE)" >> util/irr-filter.conf
# echo "define $(bgpq4 -tbl DOWNSTREAM_ASN AS-NET186 -S RIPE,ARIN,APNIC,AFRINIC,LACNIC -L 3)" > util/irr-filter.conf
# echo "define $(bgpq4 -6bl DOWNSTREAM_PREFIXES AS-NET186 -S RIPE,ARIN,APNIC,AFRINIC,LACNIC,RPKI -A -R48)" >> util/irr-filter.conf
define DOWNSTREAM_ASN = [ 200536 ];