Skip to content

Instantly share code, notes, and snippets.

@mgedmin
Created August 26, 2015 13:45
Show Gist options
  • Save mgedmin/61cb6a8fd6bfdc240e45 to your computer and use it in GitHub Desktop.
Save mgedmin/61cb6a8fd6bfdc240e45 to your computer and use it in GitHub Desktop.
Transparent apt proxy for Vagrant VMs
...
# vagrant plugin install vagrant-proxyconf
# apt-get install squid-deb-proxy-client
if Vagrant.has_plugin?("vagrant-proxyconf")
config.apt_proxy.http = `/usr/share/squid-deb-proxy-client/apt-avahi-discover`
# NB: you must 'vagrant provision' when you change networks, or the
# proxy config may be stale
end
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment