PDA

View Full Version : Can apt-get work through a firewall?



baldyeti
08-20-2003, 06:32 PM
I have one machine with a hd-installed knoppix/debian which sits behind a
firewall. Konqueror and mozilla work through the proxy - once I have
provided the required authentication. Since the package system uses http and
ftp, can it be taught how to channel those requests through the proxy?

jdong
08-20-2003, 07:29 PM
Of course.

Let's consult our best internet buddy: Google. Or, for this special purpose, Google Linux (http://www.google.com/linux)

now, let's just search for apt-get proxy. Take a look at the 4th down: http://mailman.linuxtag.org/pipermail/debian-knoppix/2003-June/003044.html


In that post, the person suggests using the environment variables http_proxy and ftp_proxy.

So, before launching apt-get, make sure those two environment variables are set. :)

baldyeti
08-21-2003, 10:59 AM
Thanks, http_proxy is supported indeed. Since I need to authenticate, the full
syntax is "export http_proxy=http://user:password@proxy:port"