Filter ASN’s
set policy-options policy-statement bogon-asns term bogon-asns from as-path-group bogon-asns
set policy-options policy-statement bogon-asns term bogon-asns then reject
set policy-options as-path-group bogon-asns as-path zero ".* 0 .*"
set policy-options as-path-group bogon-asns as-path as_trans ".* 23456 .*"
set policy-options as-path-group bogon-asns as-path examples1 ".* [64496-64511] .*"
set policy-options as-path-group bogon-asns as-path examples2 ".* [65536-65551] .*"
set policy-options as-path-group bogon-asns as-path reserved1 ".* [64512-65534] .*"
set policy-options as-path-group bogon-asns as-path reserved2 ".* [4200000000-4294967294] .*"
set policy-options as-path-group bogon-asns as-path last16 ".* 65535 .*"
set policy-options as-path-group bogon-asns as-path last32 ".* 4294967295 .*"
set policy-options as-path-group bogon-asns as-path iana-reserved ".* [65552-131071] .*"
Filter IPv4 Nets
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 127.0.0.0/8 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 10.0.0.0/8 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 172.16.0.0/12 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 192.168.0.0/16 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 169.254.0.0/16 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 224.0.0.0/4 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 240.0.0.0/4 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 100.64.0.0/10 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 192.0.2.0/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 203.0.113.0/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 198.18.0.0/15 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 from route-filter 198.51.100.0/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v4 then reject
Filter IPv6 Nets
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::/96 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::/128 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::1/128 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::ffff:0.0.0.0/96 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::224.0.0.0/100 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::127.0.0.0/104 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::0.0.0.0/104 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ::255.0.0.0/104 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 0000::/8 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 0200::/7 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 3ffe::/16 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2001:db8::/32 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:e000::/20 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:7f00::/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:0000::/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:ff00::/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:0a00::/24 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:ac10::/28 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter 2002:c0a8::/32 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter fc00::/7 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter fe80::/10 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter fec0::/10 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 from route-filter ff00::/8 orlonger
set policy-options policy-statement bogon-nets term bogon-v6 then reject