Skip to content

Instantly share code, notes, and snippets.

@juev
Created March 20, 2025 09:11
Show Gist options
  • Save juev/b8db811dae724e815a50d384fbc658a5 to your computer and use it in GitHub Desktop.
Save juev/b8db811dae724e815a50d384fbc658a5 to your computer and use it in GitHub Desktop.

Прокси для отдельного apt репозитория

Источник

Create file /etc/apt/apt.conf.d/01proxy with content like this:

Acquire::http::Proxy::external.repo.host "http://your.proxy.host/";

With the following settings all http requests to repositories on external.repo.host would be proxied via http proxy at your.proxy.host.

Example for Tailscale:

Acquire::http::Proxy::pkgs.tailscale.com "http://127.0.0.1:8080";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment