Date: Wed, 10 Feb 2016 12:33:20 -0800 From: Sergei G <sergeig.public@gmail.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: netmask with qjail Message-ID: <CAFLLzCOVEAnJbXGBBWqu7jgFQ0pddEnp9UTDBd9zBUj3uWn=ew@mail.gmail.com> In-Reply-To: <CAFLLzCP03=1yj5=YcX2U0ENNpmkHBc1dtVw89VFjG=kgu3ugXg@mail.gmail.com> References: <CAFLLzCP03=1yj5=YcX2U0ENNpmkHBc1dtVw89VFjG=kgu3ugXg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Never mind, after reading manual for qjail and jail(8) and changed /usr/local/etc/qjail/qjail.conf/myjail file's line: ip4.add = 192.168.3.17/24; and it worked. On Wed, Feb 10, 2016 at 12:21 PM, Sergei G <sergeig.public@gmail.com> wrote: > I would like to control netmask in qjail environment and I can't figure > out how. > > I looked quickly inside qjail script and all I see is that it does not > allow IP/mask format for IP address. So, I am a bit lost. > > The default mask reported by ifconfig inside jail is: > > inet 192.168.3.17 netmask 0xffffffff broadcast 192.168.3.17 > > I'd like it to be like netmask 0xffffff00 > > > I am afraid that qjail simply does not allow netwmask as I can't find any > reference to it in documentation. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFLLzCOVEAnJbXGBBWqu7jgFQ0pddEnp9UTDBd9zBUj3uWn=ew>