#!/bin/bash

# Note: the interface defined in /etc/cni/net.d/87-podman-bridge.conflist is not the one used
# because we use the default network type (bridge) with netavark, not cni (which will disappear)
reinstate_podman_rules() {
    if [ -x /usr/bin/podman ]
    then
        iptables -I INPUT -i podman0 -j ACCEPT
        /usr/bin/podman network reload --all > /dev/null
    fi
}

reinstate_podman_rules

exit 0
