Accessing the internet throguh a proxy with authentication

Discussion and support for all Linux distributions and Unix flavours (FreeBSD, OpenBSD, etc).
Post Reply
Ryan_Cooper
Registered User
Posts: 3129
Joined: 22 Sep 2008, 11:16
Location: stuck in my own world

Accessing the internet throguh a proxy with authentication

Post by Ryan_Cooper »

I'm hoping someone can help with this.

I have a CentOS Linux Server setup which needs to access the internet to receive information from other servers as this server I have setup is a Network Monitoring Server suing Nagios.
My problem is that To access the internet we have to go through a proxy which requires authentication (user name & pass).

how to I get the server to connect through the firewall using authentication without me having to enter in a user name & password every time it tries to connect to other servers outside our network
THE GAME........YOU Have JUST LOst It !!!!!!!!!!
User avatar
rustypup
Registered User
Posts: 8872
Joined: 13 Dec 2004, 02:00
Location: nullus pixius demonica
Contact:

Re: Accessing the internet throguh a proxy with authenticati

Post by rustypup »

Code: Select all

export http_proxy=http:/user:pwrd@proxyhost:proxyport
export ftp_proxy=http:/user:pwrd@proxyhost:proxyport
adding these commands to a script file under /etc/profile should see these lines executed at boot...
Most people would sooner die than think; in fact, they do so - Bertrand Russel
Post Reply