Remove iptables-persistent Package
Description
The iptables-persistent
package can be removed with the following command:
$ apt-get remove iptables-persistent
Rationale
Running both ufw
and the services included in the
iptables-persistent
package may lead to conflict.
Shell script
The following script can be run on the host to remediate the issue.
# CAUTION: This remediation script will remove iptables-persistent
# from the system, and may remove any packages
# that depend on iptables-persistent. Execute this
# remediation AFTER testing on a non-production
# system!
DEBIAN\_FRONTEND=noninteractive apt-get remove -y "iptables-persistent"
Ansible playbook
The following playbook can be run with Ansible to remediate the issue.
- name: Ensure iptables-persistent is removed
package:
name: iptables-persistent
state: absent
tags:
- disable\_strategy
- low\_complexity
- low\_disruption
- medium\_severity
- no\_reboot\_needed
- package\_iptables-persistent\_removed