Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!

prefix-list OSPF {
224.0.0.5/32;
224.0.0.6/32;
}
filter accept-ospf {
apply-flags omit;
term accept-ospf {
from {
source-prefix-list {
LOCALS-v4
}
destination-prefix-list {
LOCALS-v4
ospf;
}
protocol ospf;
}
then {
count accept-ospf;
accept;
}
}
}
user@MX-80> show configuration firewall family inet filter PROTECT-UPLINK
apply-flags omit;
/* allow packets from BGP neighbors to BGP address */
term discard-to-bgp-ip {
from {
source-address {
0.0.0.0/0;
}
source-prefix-list {
BGP-neighbors-v4 except;
}
destination-prefix-list {
BGP-locals-v4;
}
}
then {
count discard-to-bgp-ip;
discard;
}
}
/* Block private networks */
term rfc1918 {
from {
source-prefix-list {
rfc1918;
}
}
then {
count discard-rfc1918;
discard;
}
}
/* Block packet from own networks */
term discard-from-locals-ip {
from {
source-prefix-list {
INTERNAL-locals-v4;
}
}
then {
count discard-to-locals-ip;
discard;
}
}
/* allow other */
term allow-other {
then accept;
}
prefix-list BGP-locals-v4 {
apply-path "protocols bgp group <*> neighbor <*.*> local-address <*.*>";
}
prefix-list BGP-neighbors-v4 {
apply-path "protocols bgp group <*> neighbor <*.*>";
}
prefix-list rfc1918 {
10.0.0.0/8;
172.16.0.0/12;
192.168.0.0/16;
}
prefix-list INTERNAL-locals-v4 {
apply-path "interfaces xe-0/0/1 unit <*> family inet address <*>";
}
История одной DDOS атаки на роутер и методы защиты Juniper routing engine