Skip to content

Install tcp_wrappers Package

An XCCDF Rule

Description

When network services are using the xinetd service, the tcp_wrappers package should be installed. The tcp_wrappers package can be installed with the following command:
$ sudo zypper install tcp_wrappers

Rationale

Access control methods provide the ability to enhance system security posture by restricting services and known good IP addresses and address ranges. This prevents connections from unknown hosts and protocols.

ID
xccdf_org.ssgproject.content_rule_package_tcp_wrappers_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include install_tcpd
class install_tcpd {
  package { 'tcpd':
    ensure => 'installed',
  }
}

An Ansible Snippet

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

OS Build Blueprint

[[packages]]
name = "tcpd"
version = "*"

A Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q kernel-default; then
zypper install -y "tcpd"

else
    >&2 echo 'Remediation is not applicable, nothing was done'
fi