Generate a Junos Routing Engine protection filter — the lo0 input firewall filter that every RE-bound packet passes through regardless of which interface or destination address it actually arrived on. Applied via unit <*> so it automatically covers every configured loopback unit — the default instance and any routing-instances/virtual-routers — not just lo0.0. Check the protocols you run, list trusted sources per protocol where it matters, and get a complete, correctly-ordered set command block ending in a logged catch-all discard. Runs entirely in your browser — nothing is sent anywhere.
apply-path prefix-list that dynamically pulls every configured protocols bgp group <*> neighbor <*> address — including inside routing-instances/virtual-routers — so the neighbor list can never drift out of sync with your actual BGP config. No manual address entry needed.family inet firewall filter can see it, so checking this only adds an explanatory comment to the output, not a real filter term. Protect IS-IS via interface-level authentication instead (set protocols isis interface <if> level 2 authentication ...).apply-path prefix-list pulled from system ntp server <*> — no manual address entry needed.apply-path prefix-list pulled from snmp client-list <*> — your SNMP-layer poller restriction usually is the source list. Add any polling-only hosts below that aren't in a client-list.apply-path prefix-list pulled from system radius-server <*>. Not a destination-port match, and no manual address entry needed.ttl 1 so only packets that are actually topologically arriving as a hop-probe match, plus a policer on both.unit <*>, so it covers every configured loopback unit, not just lo0.0.protocols bgp, system ntp/radius-server, snmp client-list) at commit time — add or remove a peer there and this filter updates itself on the next commit, nothing to maintain twice.unit <*> — a group does nothing on its own until the trailing apply-groups line activates it.commit confirmed when applying a new RE filter remotely — a mistake here can lock you out of the box entirely.family inet only. A dual-stack box needs an equivalent family inet6 filter applied separately.Provided as-is, with no warranty of any kind. This generates a starting point, not a certified or vendor-validated configuration — exact syntax and defaults can vary by Junos version and platform. Always read through the generated config line by line, verify it against current Juniper documentation and your own environment, and test in a lab before applying to production. A mistake in a Routing Engine protection filter can lock you out of the device entirely — always use commit confirmed when applying changes remotely. See the full disclaimer.
Fryguy's Blog