OcNOS management access
Rules for how people log in to the router: no Telnet, SSH turned on in the management VRF, and a warning banner before login. They come from the ocnos-management-access policy template.
Every example on this page was checked with rConfig Pro's policy engine on Each of the 7 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. A card marked changed has one line edited to show a failure.
All the rules come from ocnos-management-access.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 IP Infusion OcNOS templates page lists the file’s known limitations. Run the rules against show running-config.
| Rule | Method | Since |
|---|---|---|
| Telnet is not enabled | must_not_match_regex |
8.0.2 |
| SSH is enabled on the management VRF | must_match_regex |
8.0.0 |
| A custom login banner is configured | must_match_regex |
8.0.0 |
Telnet is not enabled
Telnet sends logins in clear text. OcNOS has Telnet off by default and prints nothing when it is off, so this rule cannot look for a “Telnet off” line. It fails only when a feature telnet line is present.
// Telnet is not enabled (fails on feature telnet)#[must_not_match_regex]/^feature telnet\b/mfeature ssh vrf managementfeature tacacs+ vrf managementsnmp-server enable snmp vrf managementWhy: There is no feature telnet line.
feature ssh vrf managementfeature telnet vrf managementfeature tacacs+ vrf managementsnmp-server enable snmp vrf managementWhy: Telnet is turned on in the management VRF.
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 | AC-17 |
| HIPAA (45 CFR) | 164.312(a)(1) |
| ISO/IEC 27001:2022 Annex A | A.8.5 |
Tested with: sample excerpts from OcNOS-SP 7.0.0. Minimum rConfig 8.0.2 (must_not_match_regex). Editions: Pro, Vector, Enterprise.
SSH is enabled on the management VRF
SSH is the safe way to manage the router. A router with factory settings prints feature ssh vrf management, so this rule looks for that exact line. Extra text after it, other than spaces, fails.
// SSH is enabled on the management VRF (feature ssh vrf management)#[must_match_regex]/^feature ssh vrf management[ \t]*$/merrdisable cause stp-bpdu-guardfeature ssh vrf managementfeature tacacs+ vrf managementWhy: SSH is on in the management VRF.
errdisable cause stp-bpdu-guardfeature tacacs+ vrf managementWhy: There is no feature ssh vrf management line, so SSH is off in the management VRF.
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 | AC-17 |
| HIPAA (45 CFR) | 164.312(a)(1) |
| ISO/IEC 27001:2022 Annex A | A.8.24 |
Tested with: sample excerpts from OcNOS-SP 7.0.0. Minimum rConfig 8.0.0 (must_match_regex). Editions: Pro, Vector, Enterprise.
A custom login banner is configured
A login banner warns people that access is restricted and monitored. The rule passes on any banner motd line with text, except banner motd default, which puts back the banner that shows the software version.
// A custom login banner is configured (banner motd, other than banner motd default)#[must_match_regex]/^banner motd (?!default[ \t]*$)\S/mhostname dub-rtr01banner motd Authorised access only. All activity is monitored and logged.ip domain-lookup vrf managementWhy: A custom banner is set.
ip domain-lookup vrf managementbridge 1 protocol rstp vlan-bridgetfo Disableerrdisable cause stp-bpdu-guardfeature ssh vrf managementWhy: There is no banner motd line. The lab router uses the default banner, which is not printed.
hostname dub-rtr01banner motd defaultip domain-lookup vrf managementWhy: banner motd default puts back the version-string banner, so it does not count.
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 1 | fail | FAIL |
| Failing config 2 | fail | FAIL |
Framework mapping. The rule provides evidence towards these controls. It does not certify anything.
| Framework | Reference |
|---|---|
| ISO/IEC 27001:2022 Annex A | A.8.5 |
Tested with: sample excerpts from OcNOS-SP 7.0.0. Minimum rConfig 8.0.0 (must_match_regex). Editions: Pro, Vector, Enterprise.
Related reference
- IP Infusion OcNOS policy templates: every rule in
ocnos-management-access.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.