geerlingguy / ansible-role-firewall

Ansible Role - iptables Firewall configuration.
https://galaxy.ansible.com/geerlingguy/firewall/
MIT License
529 stars 219 forks source link

Remove forwarding rules at the beginning of the script #25

Closed widmoser closed 7 years ago

widmoser commented 7 years ago

When running the role multiple times, the forwarding rules accumulate, because iptables -F does not remove them.

Suggestion: iptables -F -t nat seems to resolve the issue.

geerlingguy commented 7 years ago

Interesting... I hadn't noticed that but haven't looked to closely on the servers where I have forwarding rules. I'll test to verify.