Forge Home

docsf

ConfigServer Firewall and Login Failure Daemon installation and configuration module

10,271 downloads

9,510 latest version

2.5 quality score

Version information

  • 0.9.4 (latest)
  • 0.9.3
  • 0.9.2
  • 0.9.1
  • 0.9.0
released Jun 24th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'devopera-docsf', '0.9.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add devopera-docsf
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install devopera-docsf --version 0.9.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

devopera/docsf — version 0.9.4 Jun 24th 2014

devopera-docsf

ConfigServer Firewall (csf) and Login Failure Daemon (lfd) are designed to protect online servers by providing an adaptive firewall and access/process monitoring service. CSF in turn uses IPtables to actually implement the firewall rules. This module also includes Linux Malware Detect (maldet) for detecting malware.

Original Gist came from https://gist.github.com/2772865 and https://github.com/apocas/puppet-cpanel

Changlog

2014-05-14

  • Added variables with sensible defaults for CONNLIMIT and PORTFLOOD directives to manage DOS attacks

2014-02-20

  • Fixed minor order issue on configuration files csf_ignore and csf_pignore.conf

2014-02-12

  • Making available as a module on Puppet Forge

2014-01-27

  • Added vars to allow additions to csf.ignore and csf.pignore

2013-05-09

  • Added 21 to default outgoing ports for yum updates

2013-04-11

  • Added basic maldet configuration

Usage

Setup CSF firewall with defaults

class { 'docsf': }

Setup CSF firewall to allow in certain ports, alert to specific email and ignore scripted executables

class { 'docsf':
  # allow web, ssh (on 15022), puppet, nrpe (on 5666)
  tcp_in => "80,15022,8139,8140,5666",
  lf_alert_to => 'me@example.com',
  csf_pignore => ['exe:/usr/bin/rsync', 'exe:/usr/bin/svn', 'exe:/usr/sbin/nrpe'],
}

Operating System support

Tested with CentOS 6

Copyright and License

Copyright (C) 2012 Lightenna Ltd

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.