Git Product home page Git Product logo

Comments (4)

crayfishx avatar crayfishx commented on June 18, 2024

@gothicx How do you see this working? A separate entry for each member of the port range? A quick glance at http://www.firewalld.org/documentation/service/options.html doesn't show any native support for port ranges for custom services, unless I'm not seeing it...

from puppet-firewalld.

gothicx avatar gothicx commented on June 18, 2024

@crayfishx There is no official support, the idea is to have an entry in the port entry that provides a range and then the ruby code will parse that and transform into separated ports at service xml level.

You specify "port: 5000:5020", but in xml it will translate to one port per line. You see?

    <port protocol="tcp" port="5000" />
    <port protocol="tcp" port="5001" />
    <port protocol="tcp" port="5002" />
     ....

from puppet-firewalld.

crayfishx avatar crayfishx commented on June 18, 2024

The custom_service type already allows you to define multiple ports via a hash, so I guess we're not doing anything that different here, just allowing a short-hand expression in the way they are declared. This should be fairly easy to engineer.... Based on that, I think we can add this.

from puppet-firewalld.

gothicx avatar gothicx commented on June 18, 2024

Thanks :-)

from puppet-firewalld.

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.