The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Simple Problem (I gues...): http_proxy
Author: Begbie 
Date:   29-11-02 12:22

Hi

I am running FreeBSD inside my company network. All internet-traffic from within this network to the outside world has to go via a proxy server (both http and ftp).
I was looking for hours but couldn't find any conf-file where I could define a http_proxy or ftp_proxy. Where and how is this done?
I found a possibility to tell wget to use a proxy so I assume that other programms could also be told to do so. But I don't want to add this information to the configuration-file of every single programm I am using. Isn't there something like a global variable for this sort of thing?

cheer mateys

Begbie

Reply To This Message
 
 Re: Simple Problem (I gues...): http_proxy
Author: riscy 
Date:   03-12-02 16:18

In your home directory in the file .profile or .bashrc

Reply To This Message
 
 Re: Simple Problem (I gues...): http_proxy
Author: Begbie 
Date:   04-12-02 12:30

Cheers Man.
Ok, now I know which file to alter, but I don't know what to add to this particular file.
Something like SETENV http_proxy = "http://192.168.30.12"?

Could you help me out with this as well?

Reply To This Message
 
 Re: Simple Problem (I gues...): http_proxy
Author: John Mortlock 
Date:   17-12-02 07:20

SETENV http_proxy 192.168.0.254:8080
SETENV ftp_proxy 192.168.0.254:8080

If no port is specified then the default squid port 3128 is used.

Hope this helps!

Reply To This Message
 
 Re: Simple Problem (I gues...): http_proxy
Author: Begbie 
Date:   03-01-03 12:31

Hmmm.... ok, I tried that (didn't work...)
Now, when i am installing a port I do so as root. But root doesn't have a home, so there is no .profile for root...
Isn't there a config file for fetch somewhere?

Reply To This Message
 
 Re: Simple Problem (I gues...): http_proxy
Author: John Mortlock 
Date:   06-01-03 13:23

Try these modifications
SETENV HTTP_PROXY http://192.168.0.254:8080
SETENV FTP_PROXY ftp://192.168.0.254:8080

BTW root does have a home directory just not located with the normal users. You can find Roots home dir in /root

The above commands will most likely not work in the .profile commands as they are not BASH commands but TCSH shell commands(which go into .cshrc).

If you are using BASH you want

export HTTP_PROXY=http://192.168.0.254:8080
export FTP_PROXY=ftp://192.168.0.254:8080

to make sure that these values are correctly set type
> export --- (BASH)
> printenv --- (TCSH)
at the prompt.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org