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.
// CDP is disabled globally (no cdp enable)#[must_match_regex]/^no cdp enable$/mvlan 220 name VMOTION
no cdp enablespanning-tree port type edge bpduguard defaultspanning-tree vlan 1-3967 priority 8192Why: CDP is off for the whole switch.
vlan 220 name VMOTION
spanning-tree port type edge bpduguard defaultspanning-tree vlan 1-3967 priority 8192Why: There is no global no cdp enable line.
Expected result in rConfig, with this rule as the only rule in a definition:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
// Proxy ARP is not enabled on any interface (fails on ip proxy-arp)#[must_not_match_regex]/^\s+ip proxy[- ]arp$/minterface Vlan99 description Server management no shutdown no ip redirects ip address 203.0.113.2/25Why: No ip proxy-arp line.
interface Vlan99 description Server management no shutdown no ip redirects ip address 203.0.113.2/25 ip proxy-arp ip directed-broadcastWhy: Proxy ARP is on for Vlan99.
Expected result in rConfig, with this rule as the only rule in a definition:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
// Directed broadcast is not enabled on any interface (fails on ip directed-broadcast)#[must_not_match_regex]/^\s+ip directed-broadcast\b/minterface Vlan99 description Server management no shutdown no ip redirects ip address 203.0.113.2/25Why: No ip directed-broadcast line.
interface Vlan99 description Server management no shutdown no ip redirects ip address 203.0.113.2/25 ip proxy-arp ip directed-broadcastWhy: Directed broadcast is on for Vlan99.
Expected result in rConfig, with this rule as the only rule in a definition:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
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.
Related reference
- Cisco NX-OS policy templates: every rule in
nxos-services.policy, its references and known limitations. - Policy Definitions: the definition file format and every method.
- Policy Assignments: run a definition against your devices.
- Policy Compliance Results: read the pass and fail results.