Re: Setting up proxy

2006-08-18 Thread Joao Barros

On 8/18/06, Viswas Nair [EMAIL PROTECTED] wrote:

I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
DHCP server. However, to connect to the internet I need to use a proxy. How
do I configure the system to connect via the proxy?

I cannot use a browser in to do the same because I am presently trying to
install the window manager and other applications via ports.


Set this in your shell:
export HTTP_PROXY=http://user:[EMAIL PROTECTED]:3128

or

setenv HTTP_PROXY http://user:[EMAIL PROTECTED]:3128

--
Joao Barros
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Setting up proxy

2006-08-18 Thread Ivan Levchenko

sorry, forgot to reply to all:

the first one is for bash, sh and others of the same family, the
second is for csh and others.

You can do the same thing for ftp:

export FTP_PROXY=http://user:[EMAIL PROTECTED]:3128 # for bash, sh

setenv FTP_PROXY http://user:[EMAIL PROTECTED]:3128  # For csh, ...

On 8/18/06, Joao Barros [EMAIL PROTECTED] wrote:

On 8/18/06, Viswas Nair [EMAIL PROTECTED] wrote:
 I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
 DHCP server. However, to connect to the internet I need to use a proxy. How
 do I configure the system to connect via the proxy?

 I cannot use a browser in to do the same because I am presently trying to
 install the window manager and other applications via ports.

Set this in your shell:
export HTTP_PROXY=http://user:[EMAIL PROTECTED]:3128

or

setenv HTTP_PROXY http://user:[EMAIL PROTECTED]:3128

--
Joao Barros
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




--
Best Regards,

Ivan Levchenko
[EMAIL PROTECTED]


--
Best Regards,

Ivan Levchenko
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up proxy

2006-08-18 Thread Oliver Fromme
Viswas Nair [EMAIL PROTECTED] wrote:
  I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
  DHCP server. However, to connect to the internet I need to use a proxy. How
  do I configure the system to connect via the proxy?
  
  I cannot use a browser in to do the same because I am presently trying to
  install the window manager and other applications via ports.

The ports collection uses the fetch(1) tool for retrieving
distfiles (i.e. source code) from the internet via HTTP or
FTP protocols.  If you need to use a proxy, add a line like
this to your file /etc/make.conf (create it if it doesn't
exist yet):

FETCH_ENV=  HTTP_PROXY=http://your.proxy.name:port/

You have to use the right hostname and port number of the
proxy, of course, for example:

FETCH_ENV=  HTTP_PROXY=http://proxy.internal.net:3128/

You must use URL syntax for the proxy.  3128 is the default
port if omitted.  The HTTP_PROXY will also be used for FTP,
unless FTP_PROXY is also set.  So, if you need different
proxies (or different ports) for FTP and HTTP, you need two
lines, for example:

FETCH_ENV=  HTTP_PROXY=http://http-proxy.internal.net:3128/
FETCH_ENV+= FTP_PROXY=http://ftp-proxy.internal.net:3129/

(Note the += on the second line.)

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

And believe me, as a C++ programmer, I don't hesitate to question
the decisions of language designers.  After a decent amount of C++
exposure, Python's flaws seem ridiculously small. -- Ville Vainio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up proxy

2006-08-18 Thread Ivan Levchenko

fetch will also use the default proxy that is set by the HTTP_PROXY
and FTP_PROXY enviroment variables.

On 8/18/06, Oliver Fromme [EMAIL PROTECTED] wrote:

Viswas Nair [EMAIL PROTECTED] wrote:
  I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
  DHCP server. However, to connect to the internet I need to use a proxy. How
  do I configure the system to connect via the proxy?
 
  I cannot use a browser in to do the same because I am presently trying to
  install the window manager and other applications via ports.

The ports collection uses the fetch(1) tool for retrieving
distfiles (i.e. source code) from the internet via HTTP or
FTP protocols.  If you need to use a proxy, add a line like
this to your file /etc/make.conf (create it if it doesn't
exist yet):

FETCH_ENV=  HTTP_PROXY=http://your.proxy.name:port/

You have to use the right hostname and port number of the
proxy, of course, for example:

FETCH_ENV=  HTTP_PROXY=http://proxy.internal.net:3128/

You must use URL syntax for the proxy.  3128 is the default
port if omitted.  The HTTP_PROXY will also be used for FTP,
unless FTP_PROXY is also set.  So, if you need different
proxies (or different ports) for FTP and HTTP, you need two
lines, for example:

FETCH_ENV=  HTTP_PROXY=http://http-proxy.internal.net:3128/
FETCH_ENV+= FTP_PROXY=http://ftp-proxy.internal.net:3129/

(Note the += on the second line.)

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

And believe me, as a C++ programmer, I don't hesitate to question
the decisions of language designers.  After a decent amount of C++
exposure, Python's flaws seem ridiculously small. -- Ville Vainio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




--
Best Regards,

Ivan Levchenko
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up proxy

2006-08-18 Thread Oliver Fromme
Ivan Levchenko [EMAIL PROTECTED] wrote:
  fetch will also use the default proxy that is set by the HTTP_PROXY
  and FTP_PROXY enviroment variables.

Yes.  That's essentially what I wrote.  :-)
If you want to set them system-wide (not just for the ports
collection), add them to /etc/login.conf.  Refer to the
manual page for details.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

Life is short (You need Python)
-- Bruce Eckel, ANSI C++ Comitee member, author
   of Thinking in C++ and Thinking in Java
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up proxy

2006-08-18 Thread Viswas Nair

thanks all. i got that working.

On 8/18/06, Oliver Fromme [EMAIL PROTECTED] wrote:


Ivan Levchenko [EMAIL PROTECTED] wrote:
 fetch will also use the default proxy that is set by the HTTP_PROXY
 and FTP_PROXY enviroment variables.

Yes.  That's essentially what I wrote.  :-)
If you want to set them system-wide (not just for the ports
collection), add them to /etc/login.conf.  Refer to the
manual page for details.

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

Life is short (You need Python)
-- Bruce Eckel, ANSI C++ Comitee member, author
   of Thinking in C++ and Thinking in Java
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: setting up proxy question 2, aim behind firewall

2003-02-26 Thread Kirk Strauser
At 2003-02-26T13:36:25Z, Alvaro Gil [EMAIL PROTECTED] writes:

 I read through the squid manuals and it requires a ton of disk space and
 ram and a moderately fast computer.

It does if you're using it as a transparent cache for a large ISP.  For your
purposes, your P166 will be plenty sufficient.  If you do install Squid, you
can also install AdZap, which works as a plugin to remove advertisements
From pages that Squid sends to clients.  Configure your browser to use your
new cache, and welcome to the world of no (ok, less) banner ads!  Kill two
birds with one stone!
-- 
Kirk Strauser
In Googlis non est, ergo non est.


pgp0.pgp
Description: PGP signature


Re: setting up proxy question 2, aim behind firewall

2003-02-26 Thread Matthew Seaman
On Wed, Feb 26, 2003 at 08:36:25AM -0500, Alvaro Gil wrote:
 I read through the squid manuals and it requires a ton of disk space 
 and ram and a moderately fast computer. My server is a wimpy little 
 Pentium 166 with 48 megs of ram and a 6 gig hard drive.  Is there a 
 simpler way to set up a method of using AIM behind a firewall?  I don't 
 need an industrial strength Proxy, just something so I can use AIM 
 behind a firewall..

Apache has a mod_proxy which might be suitable for your uses.

http://httpd.apache.org/docs/mod/mod_proxy.html

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message