by richard on Tue, 01/24/2012 - 10:45

Today, whilst simulating an entire network for my project, I found myself needing to use a proxy server for some Debian hosts (for some reason, they won't seem to connect just straight out!).

It's fairly simple to do. I set up squid on my laptop (what I'm virtualising all this on), and then added a single line to my apt.conf


Acquire::http::Proxy "http://proxy-server-or-ip:8080";

Obviously changing the hostname and port to the ones that you actually use.