Friday, June 12, 2009

How to make YUM work behind a firewall

I need to install a new Linux system in my company laptop and YUM is the best tool to manage rpm package in Fedora Linux. But the problem is my company firewall prevents me to access the external world directly and I have to use a proxy server to go out.

I used a popular proxy server, NTLM Authorization Proxy Server (ntlmaps) at After I download the latest version and unzip to my hard drive, I need to configure the server.cfg for the following places:

PARENT_PROXY: my company proxy host
PARENT_PROXY_PORT:my company proxy port
NT_DOMAIN: my domain
USER:my user id
PASSWORD: my password, I can leave it as blank so that the ntlmaps will ask me when it starts.

After that, run and the proxy server will listen on port 5865 by default. Of course, my system should have python installed since it is implemented in python. If not, download and install python.

The next step will be setting couple environment variable in my command line to use the proxy server,

export http_proxy=http://localhost:5865
export https_proxy=http://localhost:5865
export ftp_proxy=http://localhost:5865
export gopher_proxy=http://localhost:5865

Then, I am ready to use yum from command line.

1 comment:

  1. Thank you very much. I had searched for one week about how to use the proxy with yum and have no successful before i found your solution with ntlmaps.