As an administrator, set up your firewall to ensure users in your organization have access to Gmail.
Make sure your firewall rules connect to the following supported hosts and ports. Otherwise, users might be blocked or denied access from Gmail features. The asterisk (*) is a wild card, representing any value except a period..
These hosts and routes should be whitelisted in your firewall rules even if you turn off the corresponding service in the Admin console. Gmail uses these hosts and routes to communicate with other Google Workspace and Google services.
The asterisk (*) is a wild card, and represents any value except a period.
Keep in mind
Even if you don't see activity at the above addresses, there could be future activity. Also, the IP addresses that various domain names use don't necessarily fall within any given range.
Techniques that Gmail uses to connect to Google servers depend on a number of things, such as the browser, browser version, and networking conditions. If your organization deploys Gmail add-ons, those might require you to authorize additional hosts.
Finally, other Google services could also use the same IP addresses that Gmail uses.