STIGQter STIGQter: STIG Summary: Juniper Router RTR Security Technical Implementation Guide Version: 2 Release: 2 Benchmark Date: 12 Feb 2021:

The Juniper router must be configured to protect against or limit the effects of denial-of-service (DoS) attacks by employing control plane protection.

DISA Rule

SV-217018r639663_rule

Vulnerability Number

V-217018

Group Title

SRG-NET-000362-RTR-000110

Rule Version

JUNI-RT-000120

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Implement control plane protection by classifying traffic types based on importance and rate limit the traffic accordingly as shown in the example below.

Create filters for critical, important, normal, and undesirable traffic.

set firewall filter CoPP_Policy term CRITICAL from protocol ospf
set firewall filter CoPP_Policy term CRITICAL from protocol pim
set firewall filter CoPP_Policy term CRITICAL from protocol tcp destination-port bgp
set firewall filter CoPP_Policy term CRITICAL from protocol tcp source-port bgp
set firewall filter CoPP_Policy term CRITICAL then policer CRITICAL_POLICER

set firewall filter CoPP_Policy term IMPORTANT from protocol tcp destination-port ssh
set firewall filter CoPP_Policy term IMPORTANT from protocol tcp destination-port tacacs
set firewall filter CoPP_Policy term IMPORTANT from protocol tcp destination-port snmp
set firewall filter CoPP_Policy term IMPORTANT from protocol tcp destination-port ntp
set firewall filter CoPP_Policy term IMPORTANT then policer IMPORTANT_POLICER

set firewall filter CoPP_Policy term NORMAL from protocol icmp icmp-code ttl-eq-zero-during-transit
set firewall filter CoPP_Policy term NORMAL from protocol icmp icmp-code port-unreachable
set firewall filter CoPP_Policy term NORMAL from protocol icmp icmp-type echo-reply
set firewall filter CoPP_Policy term NORMAL from protocol icmp icmp-type echo-request
set firewall filter CoPP_Policy term NORMAL then policer NORMAL_POLICER

set firewall filter CoPP_Policy term UNDESIRABLE from protocol udp
set firewall filter CoPP_Policy term UNDESIRABLE then policer UNDESIRABLE_POLICER

set firewall filter CoPP_Policy term ALL-OTHER from address 0.0.0.0/0
set firewall filter CoPP_Policy term ALL-OTHER then policer ALL-OTHER_POLICER

Create policers for each traffic type to limit bandwidth.

set firewall policer CRITICAL_POLICER filter-specific
set firewall policer CRITICAL_POLICER if-exceeding bandwidth-limit 3000000 burst-size-limit 4000
set firewall policer CRITICAL_POLICER then discard

set firewall policer IMPORTANT_POLICER filter-specific
set firewall policer IMPORTANT_POLICER if-exceeding bandwidth-limit 400000 burst-size-limit 1500
set firewall policer IMPORTANT_POLICER then discard

set firewall policer NORMAL_POLICER filter-specific
set firewall policer NORMAL_POLICER if-exceeding bandwidth-limit 55000 burst-size-limit 150000
set firewall policer NORMAL_POLICER then discard

set firewall policer UNDESIRABLE_POLICER filter-specific
set firewall policer UNDESIRABLE_POLICER if-exceeding bandwidth-limit 32000 burst-size-limit 1500
set firewall policer UNDESIRABLE_POLICER then discard

set firewall policer ALL-OTHER_POLICER filter-specific
set firewall policer ALL-OTHER_POLICER if-exceeding bandwidth-limit 40000 burst-size-limit 1500
set firewall policer ALL-OTHER_POLICER then discard

Apply the CoPP policy to the loopback interface.

set interface lo0 unit 0 family inet filter input CoPP_Policy

Note: Several Juniper router platforms provide a DDoS Protection feature that is configured at the system hierarchy via set ddos-protection commands.

Check Contents

Determine whether control plane protection has been implemented on the router.

Verify that a CoPP policy has been configured that classifies traffic types into levels of importance.

firewall {
family inet {



}
filter CoPP_Policy {
term CRITICAL {
from {
protocol [ ospf pim tcp ];
source-port bgp;
destination-port bgp;
}
then policer CRITICAL_POLICER;
}
term IMPORTANT {
from {
protocol [ tcp udp ];
destination-port [ ssh tacacs snmp ntp ];
}
then {
policer IMPORTANT_POLICER;
}
}
term NORMAL {
from {
protocol icmp;
icmp-type [ echo-reply echo-request ];
icmp-code [ port-unreachable ttl-eq-zero-during-transit ];
}
then policer NORMAL_POLICER;
}
term UNDESIRABLE {
from {
protocol udp;
}
then policer UNDESIRABLE_POLICER;
}
term ALL-OTHER {
from {
address {
0.0.0.0/0;
}
}
then policer ALL-OTHER_POLICER;
}
}
}

Verify that policers have been configured to rate limit traffic types.

firewall {
family inet {



}
policer CRITICAL_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 3m;
burst-size-limit 4k;
}
then discard;
}
policer IMPORTANT_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 400k;
burst-size-limit 1500;
}
then discard;
}
policer NORMAL_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 55k;
burst-size-limit 1500;
}
then discard;
}
policer UNDESIRABLE_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 32k;
burst-size-limit 1500;
}
then discard;
}
policer ALL-OTHER_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 40k;
burst-size-limit 1500;
}
then discard;
}

Verify that the CoPP policy has been applied to the loopback interface as shown in the example below.

interfaces {



lo0 {
unit 0 {
family inet {
filter {
input CoPP_Policy;
}
address 2.2.2.2/32;
}
}
}
}

Note: Several Juniper router platforms provide a DDoS Protection feature that is configured at the system hierarchy via set ddos-protection commands.

If the router does not have control plane protection implemented, this is a finding.

Vulnerability Number

V-217018

Documentable

False

Rule Version

JUNI-RT-000120

Severity Override Guidance

Determine whether control plane protection has been implemented on the router.

Verify that a CoPP policy has been configured that classifies traffic types into levels of importance.

firewall {
family inet {



}
filter CoPP_Policy {
term CRITICAL {
from {
protocol [ ospf pim tcp ];
source-port bgp;
destination-port bgp;
}
then policer CRITICAL_POLICER;
}
term IMPORTANT {
from {
protocol [ tcp udp ];
destination-port [ ssh tacacs snmp ntp ];
}
then {
policer IMPORTANT_POLICER;
}
}
term NORMAL {
from {
protocol icmp;
icmp-type [ echo-reply echo-request ];
icmp-code [ port-unreachable ttl-eq-zero-during-transit ];
}
then policer NORMAL_POLICER;
}
term UNDESIRABLE {
from {
protocol udp;
}
then policer UNDESIRABLE_POLICER;
}
term ALL-OTHER {
from {
address {
0.0.0.0/0;
}
}
then policer ALL-OTHER_POLICER;
}
}
}

Verify that policers have been configured to rate limit traffic types.

firewall {
family inet {



}
policer CRITICAL_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 3m;
burst-size-limit 4k;
}
then discard;
}
policer IMPORTANT_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 400k;
burst-size-limit 1500;
}
then discard;
}
policer NORMAL_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 55k;
burst-size-limit 1500;
}
then discard;
}
policer UNDESIRABLE_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 32k;
burst-size-limit 1500;
}
then discard;
}
policer ALL-OTHER_POLICER {
filter-specific;
if-exceeding {
bandwidth-limit 40k;
burst-size-limit 1500;
}
then discard;
}

Verify that the CoPP policy has been applied to the loopback interface as shown in the example below.

interfaces {



lo0 {
unit 0 {
family inet {
filter {
input CoPP_Policy;
}
address 2.2.2.2/32;
}
}
}
}

Note: Several Juniper router platforms provide a DDoS Protection feature that is configured at the system hierarchy via set ddos-protection commands.

If the router does not have control plane protection implemented, this is a finding.

Check Content Reference

M

Target Key

4032

Comments