Git Product home page Git Product logo

Comments (5)

 avatar commented on June 16, 2024

Also using this config on xenial

  class { 'fail2ban':
    config_file_template => "fail2ban/trusty/etc/fail2ban/jail.conf.erb",
    package_ensure => 'latest',
  }

Causes this error:

Jul 09 10:24:32 core fail2ban-client[9971]: ERROR  Failed during configuration: While reading from '/etc/fail2ban/jail.conf' [line 156]: option 'port' in section 'pam-generic' already exists
Jul 09 10:24:32 core systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Jul 09 10:24:32 core systemd[1]: Failed to start Fail2Ban Service.

from puppet-fail2ban.

 avatar commented on June 16, 2024

Port actually defined twice in [pam-generic]
@dhoppe is this package broken?

from puppet-fail2ban.

dhoppe avatar dhoppe commented on June 16, 2024

I am not able to reproduce this issue.

dhoppe@macbook ~/Projects/vagrant/multi-environment (git)-[master] % vagrant ssh ubuntu_14
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-36-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Mon Nov  7 16:17:29 2016 from 10.0.2.2
vagrant@ubuntu-14:~$ sudo /etc/init.d/fail2ban status
 * Status of authentication failure monitor
 *  fail2ban is running

Are you sure that you did not place any files under /etc/fail2ban/jail.d/?

FYI: I just added the support for Ubuntu 16.04.x (Xenial Xerus) and the service is also running.

from puppet-fail2ban.

 avatar commented on June 16, 2024

About xenial support it has been added with #15.
About port issue in [pam-generic] section, I'm not running puppet these days to test again, but if in your config port is defined twice and you can start fail2ban successfully then there is nothing to worry

from puppet-fail2ban.

dhoppe avatar dhoppe commented on June 16, 2024

@k1-hedayati Thank you for the feedback. I will close this issue, since the configuration of pam-generic is part of the distributions packaging and the service starts without any error messages.

from puppet-fail2ban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.