Skip to content

GitHub Runner IP Whitelist? #1248

Answered by fdr
wilwade asked this question in Q&A
Feb 13, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

I think you have two decent options here. The general approach is to obtain a list of IP blocks associated with the Hetzner AS/"autonomous system" BGP advertisements, i.e. how they tell the internet what is to be routed to them and how, if you aren't as familiar with BGP. There are more than few services that kindly offer basic use of these databases for querying free of charge.

The Hetzner AS number is AS24940.

radb.net has a whois server that returns the routes:

whois  -h whois.radb.net -- '-i origin AS24940' | awk '/^route6?:/ {print $2}'

Note you can mess around with that 6? regular expression if you want no IPv6 prefixes or only IPv6 prefixes: as matches both route: (IPv4) and route6:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wilwade
Comment options

@fdr
Comment options

Answer selected by fdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants