def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "SERVICE_STOP",
            event.deep_get("unit", default="") in ["firewalld", "iptables", "ufw"],
        ]
    ):
        return True
    return False
