Skip to content
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

Hyphen in the ipset's hash name breaks a firewall resource #1187

Open
weastur opened this issue Jan 29, 2024 · 0 comments
Open

Hyphen in the ipset's hash name breaks a firewall resource #1187

weastur opened this issue Jan 29, 2024 · 0 comments

Comments

@weastur
Copy link

weastur commented Jan 29, 2024

Describe the Bug

For example, we have the ipset hash named "wan-networks"

Applying a catalog generates the next error

Error: Failed to apply catalog: Parameter ipset failed on Firewall[200 allow tcp from wan-networks src in INPUT for eth0]: firewall.ipset expects a value of type Undef, Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/], or Array[Pattern[/^(?:!\s)?\w+\s(?:src|dst)(?:,src|,dst)?$/]], got String

Expected Behavior

No error, as it was before 7.0.0

Steps to Reproduce

  1. Make a hash of addresses with the ipset containing hyphen in its name.
  2. Try to apply some rule with that hash

Environment

  • Version 7.0.2
  • Puppet: 8.4.0
@2fa 2fa mentioned this issue Apr 4, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants