Skip to content

Instantly share code, notes, and snippets.

@VIEWVIEWVIEW
Created November 8, 2025 16:16
Show Gist options
  • Select an option

  • Save VIEWVIEWVIEW/3048b798ea9691811a970cca09485d62 to your computer and use it in GitHub Desktop.

Select an option

Save VIEWVIEWVIEW/3048b798ea9691811a970cca09485d62 to your computer and use it in GitHub Desktop.
This script generates a list of socks5 servers from Mullvad.
#!/usr/bin/env bash
set -euo pipefail
API_URL="https://api.mullvad.net/www/relays/wireguard"
curl -s "$API_URL" \
| jq -r '
# For each element in the top‐level array
.[]
# If it has a wireguard.relays array, iterate it; otherwise skip
| .wireguard.relays?[]?
# Extract the IPv4 address and format as a socks5 proxy on port 1080
| "socks5://\(.ipv4_addr_in):1080"
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment