dn42: clean up bgp filters

This commit is contained in:
Astro 2021-03-12 23:38:17 +01:00
parent f0e9acc6ce
commit 446f93bf00
1 changed files with 12 additions and 14 deletions

View File

@ -173,26 +173,24 @@ in {
template bgp dnpeers {
local as 64699;
ipv4 {
import all;
import filter {
if proto = "hq4" then reject;
accept;
};
export filter {
if source = RTS_BGP then {
accept;
}
if proto = "hq4" then {
accept;
}
if source = RTS_BGP then accept;
if proto = "hq4" then accept;
reject;
};
};
ipv6 {
import all;
import filter {
if proto = "hq6" then reject;
accept;
};
export filter {
if source = RTS_BGP then {
accept;
}
if proto = "hq6" then {
accept;
}
if source = RTS_BGP then accept;
if proto = "hq6" then accept;
reject;
};
};