Previous Post

Releasing Update All 2.4.1 and Downloader 2.2.1 with HTTP Proxy support

Next Post
Releasing Update All 2.4.1 and Downloader 2.2.1 with HTTP Proxy support
DESCRIPTION

(ESPAÑOL ABAJO)

Hi everyone!

This is gonna be a quick one, mainly aimed at advanced users and those affected by regional blockages. So if you’re not in these groups, feel free to skip this post!

Recently, GitHub started blocking access for users from Brazil, Argentina, and Chile.They were getting a 429 error, which basically means GitHub isn’t gonna work for them.Users from China have also been unable to access GitHub since the beginning.

The problem is that we rely heavily on GitHub in the MiSTer FPGA ecosystem, so for these users, the updaters were broken.

In these cases, there’s always a workaround: VPNs.

But when it comes to MiSTer, setting up a VPN directly on the device is quite complicated. That’s why I was recommending people update from their PC using the MiSTer Downloader PC Launcher.

That works, but it’s not very convenient. You have to remove the SD card every time you want to update, and also pay for a VPN.

That’s why I decided to implement a new feature that lets you use an HTTP proxy server directly from Update All / Downloader. If your proxy server is located in the US or Europe, you’ll be able to bypass any regional blockages that way, and sometimes even get faster speeds!

To use this feature, just add an http_proxy field to your downloader.ini file. Check one of the next sections where I explain this in detail.

How to get an HTTP Proxy

Three options:

Pay for one.Services like Proxy-Cheap, IPRoyal, or Webshare offer them for around $3/month.They should work with HTTPS traffic, even if their address starts with http://, unless stated otherwise.You can also share access with a group of people to reduce costs.

Use your VPN.If you already have a VPN, it might include an HTTP proxy. Use that!Alternatively, you can set up your own proxy on your PC using tools like tinyproxy or squid, and route your MiSTer traffic through it.(Just remember to open the necessary ports in your firewall if you go this route.)All traffic will then go through your VPN.

Try free proxies (not recommended).You can try free HTTP proxies, but they’re usually unreliable and not worth the effort.

Adding the HTTP Proxy to Update All / Downloader

As mentioned, you need to add an http_proxy field under the [mister] section in your downloader.ini.

It should look like this:

http_proxy = http://username:password@proxy-ip:port

For example:

http_proxy = http://34asdf34:[email protected]:21367

(Don’t try that one, it won’t work haha)

Alternatively, you can export an environment variable with the same name, and it will take precedence (ignore this sentence if you don't know what I'm talking about, it's only for the pros!).

Then, if you don’t have the updated Downloader and Update All versions, grab this script (click in Raw, and save it to the Scripts folder of the SD) and run it once. It will automatically update both tools and run Update All with your new proxy configuration.

If you run into connection issues, it’s likely because the http_proxy field is formatted incorrectly, or the proxy server itself isn’t configured properly.

You can test it using curl in the console:

curl -v -x http://user:pass@proxy:port --cacert /etc/ssl/cert.pem https://github.com

Mirrors in the Future

The best long-term solution for regional blockages is to deploy mirrors in different regions.This is totally doable — I already have the code for it — but unfortunately, it’s costly.

If you’re interested in helping set up a mirror, please reach out to me!

I’ll do everything I can to support it on the software side.

That’s all for today!

See you soon in the next update!

ESPAÑOL

¡Hola a todos!

Este va a ser un post rápido, dirigido principalmente a usuarios avanzados y a quienes estén afectados por bloqueos regionales.¡Así que si no estás en esos grupos, puedes saltarte esta publicación sin problema!

Recientemente, GitHub comenzó a bloquear el acceso a usuarios de Brasil, Argentina y Chile.Estaban recibiendo un error 429, que básicamente significa que GitHub no va a funcionar para ellos. Los usuarios de China tampoco pueden acceder a GitHub desde el principio.

El problema es que dependemos mucho de GitHub en el ecosistema de MiSTer FPGA, así que para estos usuarios, los updaters dejaron de funcionar.

En estos casos, siempre hay una solución: las VPN.

Pero en el caso de MiSTer, configurar una VPN directamente en el dispositivo es bastante complicado. Por eso estaba recomendando a la gente actualizar desde su PC usando el MiSTer Downloader PC Launcher.

Eso funciona, pero no es muy cómodo: tienes que quitar la tarjeta SD cada vez que quieras actualizar y, además, pagar por una VPN.

Por eso decidí implementar una nueva función que te permite usar un servidor proxy HTTP directamente desde Update All / Downloader. Si tu servidor proxy está ubicado en Estados Unidos o Europa, podrás evitar los bloqueos regionales de esa manera, e incluso a veces disfrutar de mayores velocidades.

Para usar esta función, solo necesitas agregar un campo http_proxy a tu archivo downloader.ini. Verás más detalles sobre esto en su correspondiente sección en este artículo.

Cómo conseguir un proxy HTTP

Tres opciones:

Pagar por uno.Sitios como Proxy-Cheap, IPRoyal o Webshare los ofrecen por unos 3 USD al mes.Deberían ser compatibles con tráfico HTTPS, incluso si su dirección empieza con http://, a menos que indiquen explícitamente lo contrario.También puedes compartirlo con un grupo de personas para reducir los costos.

Usar tu VPN.Si ya tienes una VPN, puede que incluya un proxy HTTP.También puedes configurar tu propio proxy en tu PC usando herramientas como tinyproxy o squid, y hacer que tu MiSTer envíe el tráfico a través de él.(Recuerda abrir los puertos necesarios en tu firewall si eliges esta opción.)Todo el tráfico pasará por tu VPN de esa forma.

Proxies gratuitos (no recomendados).Puedes intentar con proxies HTTP gratuitos, pero suelen ser poco fiables y no vale la pena perder tiempo con ellos.

Agregar el proxy HTTP a Update All / Downloader

Como mencioné, debes agregar un campo http_proxy bajo la sección [mister] en tu archivo downloader.ini.

Debe verse así:

http_proxy = http://usuario:contraseña@ip-del-proxy:puerto

Por ejemplo:

http_proxy = http://34asdf34:[email protected]:21367

(No pruebes ese, no va a funcionar jaja)

Alternativamente, puedes exportar la variable de entorno con el mismo nombre y se tomará en cuenta preferentemente (si no sabes de que estoy hablando en esta frase, ignóralo, esto iba solo para los pros :P).

Luego, si no tienes las versiones actualizadas de Downloader y Update All, descarga este script (click en Raw y guardarlo en la carpeta Scripts de la SD) y ejecútalo una vez. Actualizará automáticamente ambas herramientas y ejecutará Update All con tu nueva configuración de proxy.

Si tienes problemas de conexión, probablemente se deba a que el campo http_proxy está mal escrito, o a que el servidor proxy no está configurado correctamente.

Puedes probarlo usando curl en la consola:

curl -v -x http://usuario:contraseña@proxy:puerto --cacert /etc/ssl/cert.pem https://github.com

¿Mirrors en el futuro?

La mejor solución a largo plazo para los bloqueos regionales es desplegar mirrors (réplicas) en diferentes regiones.

Esto es totalmente posible — de hecho, ya tengo el código listo — pero lamentablemente tiene un costo.

Si estás interesado en ayudar a montar un mirror, ¡contáctame!

Haré todo lo posible para brindarte soporte desde el lado del software.

¡Eso es todo por hoy!

¡Nos vemos pronto en la próxima actualización!

Jose BG PATREON 0 favs
VIEWS1
FILES1 file
POSTEDNov 3, 2025
ARCHIVEDNov 3, 2025