Giter VIP home page Giter VIP logo

ansible-port-knocking's Introduction

Ansible Port Knocking

Any computer connected to the Internet is inevitably targeted by malicious users and scripts hoping to take advantage of security vulnerabilities.

Ansible Port Knocking lets you add an extra layer of security for your infrastructure. This Ansible role enables port knocking feature for all specified servers.

Requirements

This role requires Ansible 2.7 or higher, and platform requirements are listed in the metadata file.

Role Variables

A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.

  • port_sequence: array of ports that builds the knocking sequence (Example: [24334,34534,2287]) Mandatory
  • secure_ports: array of ports to enable after a successful knocking sequence (Example: [22]) Mandatory
  • command_line_options: string KNOCKD_OPTS configuration (Example: "-i ens3") Mandatory
  • open_ports: array of ports always available (Example: [80, 443]) (Default: [])
  • sequence_timeout: number of seconds to be able to introduce the knocking sequence (Default: 15)
  • command_timeout: number of seconds to be able to introduce a command (Default: 20)

We recommend to store the port_sequence variable in a secure place, like Ansible Vault

Dependencies

None

Example Playbook

This is an example of role configuration:

- hosts: servers
  roles:
     - { role: fcsonline.ansible-port-knocking, port_sequence: [24334,34534,2287], secure_ports: [22], open_ports: [80, 443], command_line_options: "-i ens3" }

License

BSD

Author Information

Ferran Basora [email protected]

ansible-port-knocking's People

Contributors

fcsonline avatar foxlg avatar gashev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.