Free BSD Question?

dteske at dteske at
Sun Apr 27 17:24:34 UTC 2014

> -----Original Message-----
> From: Abdul Waheed [mailto:waheed53 at]
> Sent: Sunday, April 27, 2014 1:23 AM
> To: questions at
> 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
> will start this.I don't know I want to use FreeBSD 9.1 for following
> 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).

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
(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
    # XXX
    LogLevel Debug

This would first require:

pkg install -y apache22
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.

More information about the freebsd-questions mailing list