Global IP whitelist

How can I restrict requests based on IP whitelisting with a global config?
I know that I can use the IPWhiteList middleware on every ingressroute, but I want to restrict on entrypoint or global level. possible?