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.
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