howto/Bird2.md
... ...
@@ -144,7 +144,7 @@ template bgp dnpeers {
144 144
} else reject;
145 145
};
146 146
147
- export filter { if is_valid_network() then accept; else reject; };
147
+ export filter { if is_valid_network() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };
148 148
import limit 1000 action block;
149 149
};
150 150
... ...
@@ -157,7 +157,7 @@ template bgp dnpeers {
157 157
} else accept;
158 158
} else reject;
159 159
};
160
- export filter { if is_valid_network_v6() then accept; else reject; };
160
+ export filter { if is_valid_network_v6() && source ~ [RTS_STATIC, RTS_BGP] then accept; else reject; };
161 161
import limit 1000 action block;
162 162
};
163 163
}