Skip to content
Guides & References

NX-OS services

Worked examples for the NX-OS services template: CDP off globally, and no proxy ARP or directed broadcast on any interface.

Policy LibraryUpdated
Platform
cisco-nx-os
Minimum version
rConfig 8.0.2
Editions
Pro, Vector, Enterprise
On this page

NX-OS services

Rules that turn off services an attacker can use: CDP, proxy ARP and directed broadcast. They come from the nxos-services policy template.

Every example on this page was checked with rConfig Pro's policy engine on

Each of the 6 configs below was run through rConfig Pro’s evaluator with the rule above it, and gave the result shown. The configs are sanitised excerpts of the sample configs that come with the template.

All the rules come from nxos-services.policy in the policy templates (v1.5.0). Import the whole file with Import Templates (see importing a policy template), or copy one rule into your own definition. The Cisco NX-OS templates page lists the file’s known limitations. Run the rules against show running-config.

Rule Method Since
CDP disabled globally must_match_regex 8.0.0
No proxy ARP on any interface must_not_match_regex 8.0.2
No directed broadcast on any interface must_not_match_regex 8.0.2

CDP disabled globally

CDP tells anyone on the wire the switch model, software version and addresses. This rule looks for no cdp enable at the start of a line. The same command indented under an interface does not count.

Definition
// CDP is disabled globally (no cdp enable)
#[must_match_regex]
/^no cdp enable$/m
passPassing config: Hardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
vlan 220
name VMOTION
no cdp enable
spanning-tree port type edge bpduguard default
spanning-tree vlan 1-3967 priority 8192

Why: CDP is off for the whole switch.

failFailing config: Unhardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
vlan 220
name VMOTION
spanning-tree port type edge bpduguard default
spanning-tree vlan 1-3967 priority 8192

Why: There is no global no cdp enable line.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 CM-7
ISO/IEC 27001:2022 Annex A A.8.9

Tested with: sample excerpts from NX-OS 10.3(4a) (synthetic). Minimum rConfig 8.0.0 (must_match_regex). Editions: Pro, Vector, Enterprise.


No proxy ARP on any interface

Proxy ARP lets the switch answer ARP for other hosts, which hides bad addressing and helps spoofing. This rule fails on any indented ip proxy-arp line.

Definition
// Proxy ARP is not enabled on any interface (fails on ip proxy-arp)
#[must_not_match_regex]
/^\s+ip proxy[- ]arp$/m
passPassing config: Hardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
interface Vlan99
description Server management
no shutdown
no ip redirects
ip address 203.0.113.2/25

Why: No ip proxy-arp line.

failFailing config: Unhardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
interface Vlan99
description Server management
no shutdown
no ip redirects
ip address 203.0.113.2/25
ip proxy-arp
ip directed-broadcast

Why: Proxy ARP is on for Vlan99.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 SC-7
ISO/IEC 27001:2022 Annex A A.8.20

Tested with: sample excerpts from NX-OS 10.3(4a) (synthetic). Minimum rConfig 8.0.2 (must_not_match_regex). Editions: Pro, Vector, Enterprise.


No directed broadcast on any interface

Directed broadcast lets a single packet reach every host on a subnet, which is used in smurf attacks. This rule fails on any indented ip directed-broadcast line.

Definition
// Directed broadcast is not enabled on any interface (fails on ip directed-broadcast)
#[must_not_match_regex]
/^\s+ip directed-broadcast\b/m
passPassing config: Hardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
interface Vlan99
description Server management
no shutdown
no ip redirects
ip address 203.0.113.2/25

Why: No ip directed-broadcast line.

failFailing config: Unhardened Nexus 93180YC-FX sample (NX-OS 10.3(4a), synthetic)
interface Vlan99
description Server management
no shutdown
no ip redirects
ip address 203.0.113.2/25
ip proxy-arp
ip directed-broadcast

Why: Directed broadcast is on for Vlan99.

Expected result in rConfig, with this rule as the only rule in a definition:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

Framework mapping. The rule provides evidence towards these controls. It does not certify anything.

Framework Reference
NIST SP 800-53 SC-7
ISO/IEC 27001:2022 Annex A A.8.20

Tested with: sample excerpts from NX-OS 10.3(4a) (synthetic). Minimum rConfig 8.0.2 (must_not_match_regex). Editions: Pro, Vector, Enterprise.


Type to search.