how do I configure pacman to work with a http proxy?
http proxy: proxy.hello-world.com:8888
The wget wiki (https://wiki.archlinux.org/index.php/Wget) tells me that it uses the standard environment settings. But that doesn't work... So I tried:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com:8888
and without port:
wget --proxy-user "proxy.hello-world.com\iloveyou42" --proxy-password "h4xx" proxy.hello-world.com
Dosnt work as well...
Is it possible to make this work (if possible without wget)?
Thx 4 help
Last edited by GNA (2011-05-12 10:07:33)
You have to set the environment variables each time for every terminal in which you run 'pacman' (that's how my setup works and I also use 'wget').
so i tried:
export ftp_proxy=same as above
what was returned:
Resolving proxy.domain.de... 220.127.116.11
Connecting to proxy.domain.de|18.104.22.168|:8888... connected.
Proxy request sent, awaiting response... 403 Forbidden
2011-04-19 13:57:40 ERROR 403: Forbidden.
Unfortunately, I cannot assist with this further. I am using wget successfully with this advice: https://wiki.archlinux.org/index.php/Proxy_settings
An alterative method? Don't know if this would work but I don;t see why it wouldn't. You could try piping pacman through proxychains? you could even set it up to work with tor.
I like pie. Especially with a side of Arch.
How about setting the proxy details in your ~/.wgetrc or /etc/wgetrc file?
A temporary file is just a pipe with an attitude and a will to live.
I second xxxspuddy's post.
On my servers I've configured wget in /etc/wgetrc to always download through the proxy*. In /etc/pacman.conf you would have to specify /usr/bin/wget as the XferCommand.
*) actually, there are two proxies: one local proxy (cntlm) and the company ISA proxy that cntlm helps to authenticate against.
You don't *have* to use wget to use a proxy with pacman. I use the following script successfully, called from my .bashrc:
if [ -n "$1" ] ; then HN=$1 else HN=`hostname -f` fi case $HN in *.archserver.org) PROXY='' ;; *.company.com.au) PROXY='http://proxy.company.com.au:3128' BYPASS='192.168.0.0/16,127.0.0.0/8,localhost' ;; *.fukawi2.pvt) PROXY='http://proxy.fukawi2.pvt:3128' BYPASS='192.168.0.0/16,127.0.0.0/8,localhost' ;; *) PROXY='' ;; esac # clean, then export the environment vars unset HTTP_PROXY http_proxy FTP_PROXY ftp_proxy no_proxy if [ -n "$PROXY" ] ; then export HTTP_PROXY="$PROXY" export http_proxy="$PROXY" export HTTPS_PROXY="$PROXY" export https_proxy="$PROXY" export FTP_PROXY="$PROXY" export ftp_proxy="$PROXY" export no_proxy="$BYPASS" fi
this works for me: