Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2014 10:24:15 -0700
From:      <dteske@FreeBSD.org>
To:        "'Abdul Waheed'" <waheed53@yahoo.com>, <questions@FreeBSD.org>
Subject:   RE: Free BSD Question?
Message-ID:  <045201cf623d$849aac50$8dd004f0$@FreeBSD.org>
In-Reply-To: <1398586979.43416.YahooMailNeo@web141002.mail.bf1.yahoo.com>
References:  <1398586979.43416.YahooMailNeo@web141002.mail.bf1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> -----Original Message-----
> From: Abdul Waheed [mailto:waheed53@yahoo.com]
> Sent: Sunday, April 27, 2014 1:23 AM
> To: questions@FreeBSD.org
> Subject: Free BSD Question?
> 
> Dear Sir, I am new in Networking and also new in free BSD.I don't know
> about free BSD Proxy.
> I have some question i hope u will help me.
> I want to implement freeBSD in my network environment.can any body
> guide me what are the packages i need to install with free BSD.from where
i
> will start this.I don't know I want to use FreeBSD 9.1 for following
purpose:
> 1. As a proxy server
> 2. As a Router
> what i need to fulfill these requirement.please guide me from start.
> 

Turning FreeBSD into a router is easy...

sysrc gateway_enable=YES
service routing start

Turning FreeBSD into a proxy server is also easy...

pkg install -y squid
sysrc squid_enable=YES
squid -z
service squid start

Default port for squid is 3128. You can change it in
/usr/local/etc/squid/squid.conf (find "http_port 3128"
and change it to your desired port as necessary).
-- 
Devin

NB: Alternatively, if you have intentions to use the
apache web server to serve web pages, you might
want to skip squid and just use apache. Here's a
configuration file you can put into
/usr/local/etc/apache22/Includes
(or /usr/local/etc/apache24/Includes if you choose
apache24 over apache22):

FILE: mod_proxy.conf
# Proxying to other hosts
<IfModule mod_proxy.c>
    ProxyRequests On
    ProxyVia Off
    AllowCONNECT 443
    <Directory proxy:*>
        Order allow,deny
        Allow from all
    </Directory>
    # XXX
    LogLevel Debug
</IfModule>

This would first require:

pkg install -y apache22
or
pkg install -y apache24


_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?045201cf623d$849aac50$8dd004f0$>