LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Connect to RHN via proxy (https://www.linuxquestions.org/questions/red-hat-31/connect-to-rhn-via-proxy-900570/)

BFCsaus 09-01-2011 10:54 AM

Connect to RHN via proxy
 
Hi,

I have a RHEL5.5 VM which I need to register with RHN. We have a proxy server available 10.96.60.36 but I need to know how to add this to my Redhat server in order to register then download my packages.

Ive amended up2date in /etc/sysconfig/rhn with enableProxy=1 and httpProxy=10.96.60.36:3128 but am still unable to access via rhn_register (presume the port is correct).

I think im doing something wrong on the proxy side so if anyone could enlighten it would be appreciated. This is the first time ive had to register via RHN as most of our servers are not allowed direct Internet access so we are using this server as a repository we can download RPM's from via YUM then distribute accordingly.


Thanks.

TB0ne 09-01-2011 11:34 AM

Quote:

Originally Posted by BFCsaus (Post 4458888)
Hi,
I have a RHEL5.5 VM which I need to register with RHN. We have a proxy server available 10.96.60.36 but I need to know how to add this to my Redhat server in order to register then download my packages.

Ive amended up2date in /etc/sysconfig/rhn with enableProxy=1 and httpProxy=10.96.60.36:3128 but am still unable to access via rhn_register (presume the port is correct).

I think im doing something wrong on the proxy side so if anyone could enlighten it would be appreciated. This is the first time ive had to register via RHN as most of our servers are not allowed direct Internet access so we are using this server as a repository we can download RPM's from via YUM then distribute accordingly.

This is something that's done frequently, when one RHEL server is the central repository for an enterprise, to minimize exposure of servers. The proxy, though, can be sticky. Some proxies will need credentials passed to them, and how they're passed makes a difference. Without knowing that side of things, it's hard to give a decent answer about it. What you've already set is definitely on the right track, though.

Since you're registered with RedHat, you can easily just give them a call, and they can help you set this up. Get all the information you can about the proxy server first, though, since that'll definitely come up. One 'solution' I found for this (with the old, crappy proxy I had where I once worked), was to just open a web-browser from the server, and key in MY credentials. Once I got a session opened for that IP address, I was able to run up2date, and get things pulled down. Had to do it that way, since the proxy server was a piece of junk....

chrism01 09-01-2011 11:58 PM

You might want to consider using RH's soln http://docs.redhat.com/docs/en-US/Re...ion-PROXY.html

BFCsaus 09-02-2011 02:42 AM

Thanks for the replies, ive already been through the link chrism01 suggested and although was interesting reading didn't resolve my problem.

I'll get the info about the proxy server and give Redhat a call.


Cheers

anomie 09-02-2011 10:54 AM

The typical RHEL5 method is:
Code:

# rhn_register --proxy=your.proxy.here:3128 --nox
That assumes a squid proxy (sans proxy authentication). Replace 'your.proxy.here' and TCP port '3128' as appropriate.


All times are GMT -5. The time now is 01:09 PM.