Changing jail's IP automatically

Konstantin Belousov kostikbel at gmail.com
Sat Sep 3 15:52:28 UTC 2016


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.


More information about the freebsd-jail mailing list