devopera / puppet-docsf

ConfigServer-Firewall puppet config
Other
3 stars 4 forks source link

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

2016-11-30

2015-02-18

2015-01-21

2014-12-30

2014-12-23

2014-12-17

2014-10-17

2014-09-19

2014-05-14

2014-02-20

2014-02-12

2014-01-27

2013-05-09

2013-04-11

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, Ubuntu 12.04 LTS, Ubuntu 14.04 LTS

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.