github.com/imran-kn/cilium-fork@v1.6.9/contrib/ansible/roles/cleanup/tasks/main.yml (about)

     1  ---
     2  
     3  - name: Clean iptables
     4    command: "{{ item }}"
     5    with_items:
     6      - iptables -t nat -P PREROUTING ACCEPT
     7      - iptables -t nat -P POSTROUTING ACCEPT
     8      - iptables -t nat -P OUTPUT ACCEPT
     9      - iptables -t nat -F
    10      - iptables -t nat -X
    11      - iptables -t mangle -P PREROUTING ACCEPT
    12      - iptables -t mangle -P INPUT ACCEPT
    13      - iptables -t mangle -P FORWARD ACCEPT
    14      - iptables -t mangle -P OUTPUT ACCEPT
    15      - iptables -t mangle -P POSTROUTING ACCEPT
    16      - iptables -t mangle -F
    17      - iptables -t mangle -X
    18      - iptables -t filter -P INPUT ACCEPT
    19      - iptables -t filter -P FORWARD ACCEPT
    20      - iptables -t filter -P OUTPUT ACCEPT
    21      - iptables -t filter -F
    22      - iptables -t filter -X
    23      - ufw disable
    24      - rmmod ipt_REJECT nf_reject_ipv4 iptable_mangle ipt_MASQUERADE iptable_nat nf_nat_ipv4 iptable_filter ip6table_filter ip6_tables ip_tables xt_CHECKSUM xt_tcpudp xt_conntrack xt_addrtype ebtable_nat ebtables x_tables nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat nf_conntrack
    25    ignore_errors: yes