Last active
July 15, 2025 08:07
-
-
Save sae13/25e79ce064e6643f888f135af951ad18 to your computer and use it in GitHub Desktop.
idea account copiliot account through proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p $HOME/App/tun2proxy >/dev/null 2>&1 | |
cd $HOME/App/tun2proxy || true | |
aria2c -x 16 -k1m -s 16 -c "https://github.com/tun2proxy/tun2proxy/releases/latest/download/tun2proxy-x86_64-unknown-linux-gnu.zip" | |
7z x -aoa tun2proxy-x86_64-unknown-linux-gnu.zip | |
sudo ip tuntap add name tun0 mode tun | |
sudo ip link set tun0 up | |
# Define array of domains | |
domains=( | |
"openrouter.ai" | |
"aistudio.google.com" | |
"llm7.io" | |
"api.llm7.io" | |
"token.llm7.io" | |
"felixangelov.gallery.vsassets.io" | |
"download.jetbrains.com" | |
"d1do0znm134sif.cloudfront.net" | |
"proxy.individual.githubcopilot.com" | |
"docs.ansible.com" | |
"ansible.com" | |
"ollama.com" | |
"dl.flathub.org" | |
"ai-chat.bsg.brave.com" | |
"cursor.com" | |
"76.76.21.21" | |
"dockerstatic.com" | |
"hub.docker.com" | |
"awsdns-hostmaster.amazon.com" | |
"cloud-dns-hostmaster.google.com" | |
"securetoken.googleapis.com" | |
"ns-cloud-b1.googledomains.com" | |
"ns-cloud-e1.googledomains.com" | |
"windsurf-stable.codeiumdata.com" | |
"windsurf.com" | |
"unleash.codeium.com" | |
"api2geo.cursor.sh" | |
"codeium.com" | |
"api2.cursor.sh" | |
"api2.cursor.sh.cdn.cloudflare.net" | |
"server.codeium.com" | |
"ns-cloud-e1.googledomains.com" | |
"xfiles.ngc.nvidia.com" | |
"api.ngc.nvidia.com" | |
"nvidia.hosted-by-discourse.com." | |
"forums.developer.nvidia.com.global.ogslb.com." | |
"forums.developer.nvidia.com" | |
"download.jetbrains.com" | |
"download.docker.com" | |
"repo-default.voidlinux.org" | |
"dl.google.com" | |
"docs.nvidia.com" | |
"hqemgate08.nvidia.com" | |
"hqemgate09.nvidia.com" | |
"52.41.149.214" | |
"52.43.48.68" | |
"82.178.158.117" | |
"dl.google.com" | |
"192.178.24.206" | |
"e33907.a.akamaiedge.net" | |
"e33907.a.akamaiedge.net" | |
"e33907.a.akamaiedge.net." | |
"developer.nvidia.com.edgekey.net." | |
"developer.download.nvidia.com" | |
"developer.nvidia.com" | |
"account.jetbrains.com" | |
"api.jetbrains.ai" | |
"analytics.services.jetbrains.com" | |
"resources.jetbrains.com" | |
"downloads.marketplace.jetbrains.com" | |
"download-cdn.jetbrains.com" | |
"d3kdv2x2np28ys.cloudfront.net" | |
"api.github.com" | |
"westus-0.in.applicationinsights.azure.com" | |
"mobile.events.data.microsoft.com" | |
"d3kdv2x2np28ys.cloudfront.net" | |
"plugins.jetbrains.com" | |
"index.docker.io" | |
"d3fo0g5hm7lbuv.cloudfront.net" | |
"docs.nvidia.com" | |
"e33907.a.akamaiedge.net" | |
"docs.nvidia.com.edgekey.net" | |
"avatars.githubusercontent.com" | |
"mobile.events.data.microsoft.com" | |
"112.6.16.172.in-addr.arpa" | |
"update.code.visualstudio.com" | |
"default.exp-tas.com" | |
"vscodewalkthroughs.z1.web.core.windows.net" | |
"boot.net.anydesk.com" | |
"api.github.com" | |
"default.exp-tas.com" | |
"api.github.com" | |
"default.exp-tas.com" | |
"education.github.com" | |
"configs.gitkraken.dev" | |
"default.exp-tas.com" | |
"configs.gitkraken.dev" | |
"default.exp-tas.com" | |
"copilot-telemetry.githubusercontent.com" | |
"api.github.com" | |
"copilot-telemetry.githubusercontent.com" | |
"_alljoyn._tcp.local,_alljoyn._udp.local" | |
"mobile.events.data.microsoft.com" | |
"westus-0.in.applicationinsights.azure.com" | |
"api.github.com" | |
"westus-0.in.applicationinsights.azure.com" | |
"mobile.events.data.microsoft.com" | |
"education.github.com" | |
"otel.gitkraken.com" | |
"copilot-telemetry.githubusercontent.com" | |
) | |
# Single loop through domains | |
for domain in "${domains[@]}"; do | |
readarray -t ips < <(dig "$domain" +short) | |
for ip in "${ips[@]}"; do | |
echo "$domain" | |
echo "sudo ip r add "$ip" dev tun0 >/dev/null 2>&1" | |
sudo ip r add "$ip" dev tun0 >/dev/null 2>&1 | |
done | |
done | |
echo "ADDING Telegram IPS" | |
sudo ip r add 91.108.56.0/22 dev tun0 | |
sudo ip r add 91.108.4.0/22 dev tun0 | |
sudo ip r add 91.108.8.0/22 dev tun0 | |
sudo ip r add 91.108.16.0/22 dev tun0 | |
sudo ip r add 91.108.12.0/22 dev tun0 | |
sudo ip r add 149.154.160.0/20 dev tun0 | |
sudo ip r add 91.105.192.0/23 dev tun0 | |
sudo ip r add 91.108.20.0/22 dev tun0 | |
sudo ip r add 185.76.151.0/24 dev tun0 | |
ip r | |
$HOME/App/tun2proxy/tun2proxy-bin --tun tun0 --proxy socks5://172.16.6.81:13741 | |
sudo ip tuntap del tun0 mode tun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment