My first puppet module released juasiepo-knockd

Today I have released to the public my first puppet module:

It installs and configures knockd (a port knocking software).
It is very easy to use as it already has some default values making it working properly out-of-the box.

It is enough including the module in your configuration (nodes.pp or ENC)

include knockd

Also default values can be overriden:

class { 'knockd':
  sequence_open => '4000:udp,4000:tcp,4000:udp',
  sequence_close => '4001:tcp,4001:udp,4001:tcp',
  port_to_manage => '22',
}

In this case, knockd will open the 22 port when the server receives the 4000:udp,4000:tcp,4000:udp sequence and close it when receives 4001:tcp,4001:udp,4001:tcp

It also install a port knocker client

To open the port:

knock hostname 4000:udp 4000:tcp ,4000:udp

To close the port:

knock hostname 4001:tcp 4001:udp 4001:tcp

 

Share

Leave a Reply

Your email address will not be published.

Ver más

  • Responsable: Juan Sierra Pons.
  • Finalidad:  Moderar los comentarios.
  • Legitimación:  Por consentimiento del interesado.
  • Destinatarios y encargados de tratamiento:  No se ceden o comunican datos a terceros para prestar este servicio. El Titular ha contratado los servicios de alojamiento web a ovh que actúa como encargado de tratamiento.
  • Derechos: Acceder, rectificar y suprimir los datos.
  • Información Adicional: Puede consultar la información detallada en la Política de Privacidad.

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.