Pub Sub ip ranges for customer firewall

293 views
Skip to first unread message

Nazar Pron

unread,
Nov 10, 2021, 4:50:46 AM11/10/21
to pubsub-discuss
Hi, I need a list of IP ranges for the customer firewall, to make the app able to publish to the pubsub topic.

Carlos Clement Bellido

unread,
Nov 10, 2021, 6:55:19 AM11/10/21
to pubsub-discuss

Hi!

Google exposes their public IPs in https://www.gstatic.com/ipranges/goog.txt. Keep in mind that this list also includes customer-usable IPs. If you want only the IPs used by Google systems (like pubsub), you need to subtract the IPs in this range: https://www.gstatic.com/ipranges/cloud.json. In this documentation you can find an example python script on how to do so.

Reply all
Reply to author
Forward
0 new messages