[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ezjail] [PATCH] "Locally configured IP" check in ezjail-admin is not 100% reliable

On 15.01.12 05:32, Dirk Engling wrote:

> As the source shows, this flag is not configurable. So I guess it was a
> nice idea that was killed a while ago without us noticing it's dead
> already :(

I might use ping and ping6 and try to fix the source address:

ping/ping6 -n -S ${address} -q -c 1 localhost >/dev/null 2>/dev/null
echo $?

The only drawback is that this does not work in jails. So once
hierarchical jails are working, this mean that this feature wont work
inside a jail running ezjail again... For now I think this is acceptable.