Changing jail's IP automatically

Grzegorz Junka list1 at gjunka.com
Sun Sep 4 16:17:25 UTC 2016


On 03/09/2016 15:52, Konstantin Belousov wrote:
> 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.

Does it require to use vnet in the jail?


More information about the freebsd-jail mailing list