Thursday, December 4, 2014

Make Scientific Linux (Or any Red Hat) Yum Updates work on NIPR

We are moving to Scientific Linux for our Red Hat variant of linux on our DoD network and unless you have direct control of your firewall, you're going to have a bad time trying to get command line functions that depend on the web (Yum, cURL) working on NIPRnet.

This is normally due to most commands locking down the outbound on the firewall to specific "user agents". Normally, the only user agents allowed out to the web are for IE, Firefox, and Chrome. It's common practice in development land to "fake" a user-agent to test a website or application. In linux, this is pretty easy, in Windows ... not so much. 

Fortunately, someone (Emilio) figured out how you can modify the user-agent for Yum to update/grab any software packages you may need right here.

I've tried this on our SL7 on NIPRnet and it worked like a champ.

No comments:

Post a Comment