aboutsummaryrefslogblamecommitdiff
path: root/modules/base_installation/manifests/firewall.pp
blob: 12eeac2253716f63809bacf4b3815dcd2c97af7c (plain) (tree)



















                                                                 
class base_installation::firewall inherits base_installation {
  ensure_packages(["whois"], { 'install_options' => '--asdeps' })

  class { 'fail2ban':
    logtarget => 'SYSLOG',
    backend   => 'systemd'
  }

  fail2ban::jail { 'sshd':
    backend  => 'systemd',
    port     => 'ssh',
    filter   => 'sshd',
    maxretry => 10,
    bantime  => 86400,
    logpath  => '',
    order    => 10
  }

  contain "fail2ban"
}