12345678910111213141516171819202122232425262728293031323334 |
- /*
- * Anti DDoS
- */
- protocol static antiddos_v4 {
- {% for prefix in dn42.antiddos.ipv4 %}
- route {{ prefix }} blackhole;
- {% endfor %}
- ipv4 {
- import filter {
- bgp_local_pref = 0;
- bgp_community.add((65535, 666));
- accept;
- };
- export none;
- };
- }
- protocol static antiddos_v6 {
- {% for prefix in dn42.antiddos.ipv6 %}
- route {{ prefix }} blackhole;
- {% endfor %}
- ipv6 {
- import filter {
- bgp_local_pref = 0;
- bgp_community.add((65535, 666));
- accept;
- };
- export none;
- };
- }
|