Giter VIP home page Giter VIP logo

ansible-ipset's Introduction

ipset

Build Status

The role installs and configure ipset

Usage (examples)

Minimal

    - role: ipset

Cloudflare + custom lists

    - role: ipset
      lists:
        - {name: cf-v4, family: inet}
        - {name: cf-v6, family: inet6}
        - {name: client-ssh, family: inet, uri: http://projectname.ossdata.ru/ipset136/client-ssh}

Custom ipset lists with list of IP

- role: ipset
  update_lists: false
  lists:
    - name: custom-v4
      family: inet
      ips:
        - 123.123.123.123
        - 234.234.234.234
    - name: custom-v6
      family: inet6
      ips:
        - 2001:19f0:210:125d::436
        - 2607:fcd0:bb70:1e00::4020

Available parameters

Main

Param Default Description
ipset_setup full Setup mode. See OSSHelp KB article
ipset_default_lists See next header. Default ipset lists
lists [] Custom ipset lists

List parameters

By default the role installs 4 ipset lists:

ipset_default_lists:
  - {name: oss-v4, family: inet}
  - {name: oss-v6, family: inet6}
  - {name: oss-probe-v4, family: inet}
  - {name: oss-probe-v6, family: inet6}

Additonal lists can be enabled using these parameters:

Param Default Description
name - name of an ipset list, any name, e.g. client-ssh
family - family of an ipset list, inet or inet6
uri - url which contains a list of IPs for a specific ipset list
ips - list of IP adresses for list

Useful links

TODO

  • improve check mode support. Some task disabled for check mode
  • delete update_lists param

License

GPL3

Author

OSSHelp Team, see https://oss.help

ansible-ipset's People

Watchers

 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.