Skip to content

Improve IP discovery: Fetch Google IPs dynamically instead of using static list #10

Closed

Description

@v4g4b0nd-0x76

Problem

Currently, the scan-ips command relies on a hardcoded static list of Google IPs.

Proposed Solution

Implement dynamic IP discovery that:

  1. Fetches Google's official IP ranges from their public API (goog.json)
  2. Resolves IPs from well-known Google domains (google.com, youtube.com, meet.google.com, etc.)
  3. Identifies CIDR blocks that contain these "famous" IPs
  4. Extracts candidate IPs from those prioritized CIDR blocks
  5. Tests a configurable subset of candidates to find working frontend IPs

Expected Benefits

  • Always work with current Google IP ranges
  • Discover potentially faster IPs for specific network conditions
  • Reduce maintenance overhead

Configuration Options

Suggest adding:

  • fetch_ips_from_api (bool): Enable/disable dynamic fetching (fallback to static list)
  • max_ips_to_scan (usize): Limit how many candidates to test (performance vs coverage trade-off)
  • google_ip_validation (bool): Enable strict frontend validation to filter out non-frontend IPs

Validation Requirements

Not all Google IPs are suitable frontends. We need to validate that discovered IPs actually serve Google Search, YouTube, or Meet by checking:

  • TLS certificate SANs for legitimate Google domains
  • Response headers (server: gws, x-google-*, alt-svc: h3=)

this issue is implemented in #9.

thanks for your time.

Activity

  1. added a commit that references this issue on Apr 22, 2026
    cc5f939
  2. added a commit that references this issue on Apr 22, 2026
    8651374
  3. added 2 commits that reference this issue on Apr 25, 2026
    1125771
    5101a06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions