Skip to content

Rule is not updated when source is removed #1241

@limanzhang-ess

Description

@limanzhang-ess

Describe the Bug

When a rule is created with source, for example
'006 accept HTTPS 443':
chain: 'INPUT'
state: "NEW"
dport: '443'
proto: tcp
source: some_ip
action: accept

Then source is removed:
'006 accept HTTPS 443':
chain: 'INPUT'
state: "NEW"
dport: '443'
proto: tcp
action: accept

The rule is not changed in iptables. It still holds the source and the module doesn't know the change.

Expected Behavior

Remove the source or destination in iptables when they are removed from puppet code.

Environment

  • puppet 7.33
  • Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions