Refactored enabling and disabling ingress filtering