Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2005 23:35:04 -0600
From:      "Chad Leigh -- Shire.Net LLC" <chad@shire.net>
To:        Chatchawan Wongsiriprasert <cws@miraclenet.co.th>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Acess 127.0.0.1 from FreeBSD jail
Message-ID:  <9D57A8CD-C930-4881-84BF-E98089761FAE@shire.net>
In-Reply-To: <52771.58.136.66.157.1122701141.squirrel@secure.abatravel.net>
References:  <52771.58.136.66.157.1122701141.squirrel@secure.abatravel.net>

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

On Jul 29, 2005, at 11:25 PM, Chatchawan Wongsiriprasert wrote:

> Hi,
>    I am now using chroot apache+php, and want to move to more secure
> FreeBSD jail.
>
>    After read the FreeBSD handbook, I have been successfully created a
> jailed apache+php on my test server but there is a litle problem that
> need to be solved before I put it on my real server.
>
>    I run mysql-server on this server and make it listen only to  
> 127.0.0.1
> (--bind-address option). How can  I access mysql-server on this server
> from the jail without
>     (1) make mysql-server listen to the real ip (I don't want to open
> another door to my server -- firewall can be employ but this add
> another complexity to my setup)

Create a separate jail on the system and put mysql in that.  Make the  
address of this mysql jail be 192.168.1.1 or something like that.   
The apache jail will be able to reach it but the outside won't.

You should still have a firewall of some sort.

>      or
>     (2) using unix socket (a lot of code to change and test -- most  
> are
> develop by another people).

Using the socket option is better as it probably also performs better  
(I don't know this for sure -- am just guessing)

Chad

>
>
> Regards,
> Chatchawan Wongsiriprasert
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions- 
> unsubscribe@freebsd.org"
>

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad@shire.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9D57A8CD-C930-4881-84BF-E98089761FAE>