troubleshooting Question

rhel6 - unable to work with rhn_register and yum behind IIS proxy wiht NTLM

Avatar of luser9999
luser9999 asked on
LinuxLinux NetworkingSoftware Firewalls
3 Comments2 Solutions1439 ViewsLast Modified:
Hi Team,

I am working with a client and ran into this problem....

They have a rhel6 box behind IIS web proxy using NTLM auth. We recently discovered that there is no internet connectivity so they provided me with a proxy to use to bypass it. I tried the below,

export http_proxy="http://user:pass@proxyserver:port"

This does not seem to be working.

Our goal is to register this box with rhn and then use yum to update the system with the latest patches. rhn_register did not work as it says "we can't connect to https://xmlrpc.rhn.redhat.com/XMLRPC' - make sure that the internet connection on this system is operational"

We can't go further. we then googled and got some responses that rhn_register does not work well with IIS proxy and NTLM authentication and they asked us to use a third party program called ntlmaps.sourceforge.net. We then downloaded the package and configured it by entering proxy details in server.cfg file and then run ./main.py

It is now listening on a port localhost 5865....

we then used this command it works

rhn_register --proxy=http://localhost:5865

It is now connected to the rhn site and registered the box successfully.

we then tries to use yum update or yum install httpd it gives below error;

yum install httpd
loaded plugins: dellsysidm product-id, refresh-packagekit, rhnplugin, security,subscription-manager
updating certificate-based repositories
unable to read consumer identity
Error: failed to retrieve repodata/25273acb31.......primary.xml.gz from rhel-x86_64-server-6
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 407"

We can't install any packages and we tired below steps,

yum clean all
rm -rf /var/cache/yum*
adding below to the /etc/yum.conf
proxy=http://localhost:5865
ftp_proxy=http://localhost:5865

nothing works... can someone please shed some light on this?

Thanks
SA
ASKER CERTIFIED SOLUTION
vincenteam

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros