Date: Sat, 3 Sep 2016 18:52:22 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: James Gritton <jamie@freebsd.org> Cc: Grzegorz Junka <list1@gjunka.com>, freebsd-jail@freebsd.org Subject: Re: Changing jail's IP automatically Message-ID: <20160903155222.GV83214@kib.kiev.ua> In-Reply-To: <4fa37d2e14665ff5a00548626e55142f@gritton.org> References: <872dfbe1-3f39-bf5f-44b2-611bd92a1210@gjunka.com> <4fa37d2e14665ff5a00548626e55142f@gritton.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 03, 2016 at 09:33:08AM -0600, James Gritton wrote: > On 2016-09-02 15:08, Grzegorz Junka wrote: > > I am using a jail on my laptop and I often connect to different > > WiFi's, which of course assign different IPs to my laptop. I set up > > the jail by adding an alias to wlan0 and I need to update the IP every > > time I switch the WiFi network. Is it possible to create a jail with > > IP assigned dynamically, e.g. from DHCP, or at least switch between > > predefined IPs more easily than by editing /etc/jail.conf? > > You can always add addresses later. I use private address in the jail, and NAT it on outside interface. This worked fine on a roaming laptop with DHCP, several years ago.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160903155222.GV83214>