Puppet Class: cis_security_hardening::rules::ftp
- Defined in:
- manifests/rules/ftp.pp
Summary
Ensure FTP Server is not installedOverview
FTP (File Transfer Protocol) is a traditional and widely used standard tool for transferring files between a server and clients over a network, especially where no authentication is necessary (permits anonymous users to connect to a server). Rationale: FTP does not protect the confidentiality of data or authentication credentials. It is recommended SFTP be used if file transfer is required. Unless there is a need to run the system as a FTP server (for example, to allow anonymous downloads), it is recommended that the package be removed to reduce the potential attack surface.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'manifests/rules/ftp.pp', line 20
class cis_security_hardening::rules::ftp (
Boolean $enforce = false,
) {
if $enforce {
$ensure = $facts['os']['family'].downcase() ? {
'suse' => 'absent',
default => 'purged',
}
ensure_packages(['ftp'], {
ensure => $ensure,
})
}
}
|