Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Dec 2006 10:58:05 -0500
From:      Anish Mistry <amistry@am-productions.biz>
To:        freebsd-questions@freebsd.org
Cc:        Greg Barniskis <nalists@scls.lib.wi.us>, Denzil Kelly <dkelly6@gmail.com>
Subject:   Re: freebsd jails
Message-ID:  <200612071058.14264.amistry@am-productions.biz>
In-Reply-To: <457830BE.60203@scls.lib.wi.us>
References:  <eb26ba4c0612061726m635a7266v22b07d6d0b9d86f9@mail.gmail.com> <457830BE.60203@scls.lib.wi.us>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart3340057.SgQTdJVLDM
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Thursday 07 December 2006 10:18, Greg Barniskis wrote:
> Denzil Kelly wrote:
> > I need to implement web content filtering using squidguard and/or
> > dansguardian for several locations. Each site has different
> > filtering requirements. I want to know if it is possible to do
> > this using a jail for each site(provided that I have sufficiently
> > powerful hardware).
>
> Should not be too difficult to implement.
>
> > I want to
> > have a different IP address for each jail.
>
> A unique IP for each jail is required in any case.
>
> > If this is possible do I need to
> > have a different NIC for each jail?
>
> Nope. Just use aliases in rc.conf for the one NIC. For example, if
> I have a NIC fxp0, on a host with two jails:
>
> ifconfig_fxp0=3D"inet 192.168.0.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0=3D"inet 192.168.0.2 netmask 255.255.255.255"
> ifconfig_fxp0_alias1=3D"inet 192.168.0.3 netmask 255.255.255.255"
>
> Note the alias masks are all ones -- that's not a typo.
=46or 6.2 and above you don't need the alias lines anymore, the=20
following works just fine.

jail_list=3D"wwwtest"
# wwwtest jail
jail_wwwtest_interface=3D"vr0"
jail_wwwtest_ip=3D"192.168.1.61"
jail_wwwtest_hostname=3D"wwwtest.example.org"
jail_wwwtest_rootdir=3D"/jail/wwwtest"
jail_wwwtest_devfs_enable=3D"YES"
jail_wwwtest_devfs_ruleset=3D"devfsrules_jail"

=2D-=20
Anish Mistry
amistry@am-productions.biz
AM Productions http://am-productions.biz/

--nextPart3340057.SgQTdJVLDM
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFeDoWxqA5ziudZT0RAmYQAKCsQezU5AprCTFYbJvL3U1o2qzT0wCeIlPQ
JEyqX/KkJw/wwDxUIEVQFt4=
=2+6W
-----END PGP SIGNATURE-----

--nextPart3340057.SgQTdJVLDM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612071058.14264.amistry>