Skip to content

Disable Quagga Service

An XCCDF Rule

Description

The zebra service can be disabled with the following command:

$ sudo systemctl mask --now zebra.service

Rationale

Routing protocol daemons are typically used on routers to exchange network topology information with other routers. If routing daemons are used when not required, system network information may be unnecessarily transmitted across the network.

ID
xccdf_org.ssgproject.content_rule_service_zebra_disabled
Severity
Medium
References
Updated



Remediation - Puppet

include disable_zebra

class disable_zebra {
  service {'zebra':
    enable => false,
    ensure => 'stopped',

Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - NIST-800-53-CM-6(a)
  - NIST-800-53-CM-7(a)

Remediation - OS Build Blueprint


[customizations.services]
masked = ["zebra"]

Remediation - Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel; then

SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" stop 'zebra.service'
"$SYSTEMCTL_EXEC" disable 'zebra.service'