-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Allow to define a port range for custom_services #107
Comments
@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... |
@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?
|
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. |
Thanks :-) |
It would be nice to have :-)
firewalld::custom_services:
xy-application:
short: 'xy-application'
description: 'XY Application'
port:
- port: 5000:5020
protocol: 'tcp'
Then it will detect there is a ":" or "-" in the port variable and create the xml service accordingly.
The text was updated successfully, but these errors were encountered: