HTTP Proxy configuration with YUM

Support for security such as Firewalls and securing linux
blimpman
Posts: 2
Joined: 2006/08/21 14:12:33

HTTP Proxy configuration with YUM

Postby blimpman » 2007/01/04 17:22:34

CentOS 4.3

I cannot seem to get the authentication to work thru my corporate firewall in oder to use YUM.

In the yum.conf file I have added the proxy_username= , proxy=http://ipaddress:port & the proxy_password= lines for YUM to use to get thru my firewall. I still get the
HTTP Error 407 for being unauthorized. :-(

Is there any other place to configure HTTP Proxy access?

arrfab
Site Admin
Posts: 868
Joined: 2005/01/03 21:30:54
Location: /country/belgium
Contact:

Re: HTTP Proxy configuration with YUM

Postby arrfab » 2007/01/05 08:37:18

What kind of proxy are you using upstream ? if it's a Microsoft ISA proxy, it's probably configured only for ntlm authentication and not basic/clear text.
Use a intermediate proxy that you can install on your box like this one : http://ntlmaps.sourceforge.net/
I've used it several times to access the net through a isa proxy without any problems ...

BramV
Posts: 1
Joined: 2007/04/17 08:48:39
Location: Belgium

Re: HTTP Proxy configuration with YUM

Postby BramV » 2007/04/17 09:06:14

Hi,
can anyone help me with ntlmaps? I'm quite new to linux.
I run CentOS 4 single server CD (no X server/GUI) and used ntlmaps in Ubuntu Server before with succes.
In Ubuntu i got this 'interface' that guided me through the configuration en installed ntlmaps automatically.

In CentOS:
i downloaded ntlmaps-0.9.9.6-1.i386.rpm
Installed it with rpm -i ntlmaps-0.9.9.6-1.i386.rpm
Changed the server.cfg.
And then i run "./main.py"
But then the process starts in the foreground. So i can't really work.
Starting it as "./main.py &" doesn't help.

What is de easiest way to run ntlmaps as a service or in the background?

nunana
Posts: 1
Joined: 2009/09/17 14:36:47

Re: HTTP Proxy configuration with YUM

Postby nunana » 2009/09/17 14:57:43

Make a script in /etc/init.d (I named it ntlmaps.sh)
cd /etc/init.d
vim ntlmaps.sh

the script contains:
#!/bin/bash
/usr/bin/ntlmaps &

Make a soft link /etc/rc5.d

cd /etc/rc5.d
ln -s ../init.d/ntlmaps.sh S99z_ntlmaps

after a reboot the ntlmaps is started. You can check this with:
ps -ef | grep ntlmaps

pjwelsh
Posts: 2589
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: HTTP Proxy configuration with YUM

Postby pjwelsh » 2009/09/17 15:47:25

Edit: I did not initially realize that this OLD thread got reborn... sorry.