Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ioc_start.py: allow setting IP address on lo0 (#48)
* ioc_start.py: allow 'none' bridge in interfaces Iocage currently expects interfaces to be specified in the nic:bridge format, where bridge cannot be none. This results in iocage always creating a bridge to which VNET jail epair interfaces are added as members. In a scenario where the user wants jails to be isolated on the data-link layer (OSI layer 2 / Ethernet) and use the host as a router, this bridge is unnecessery. It can also result in illegitimate cross-jail traffic being allowed, since pf filtering on bridge interfaces is disabled by default on FreeBSD systems (net.link.bridge.pfil_bridge=0). Closes #44 * ioc_start.py: allow setting IP address on lo0 Currently, iocage ignores IP addresses given for the loopback interface lo0 that exists by default in a VNET jail. Adding addresses to that interface can be useful, for instance to implement rfc7404 addressing where link-local addresses are used for interconnections, and routable addresses are set on loopback interfaces. This commit enables setting additional addresses on the lo0 interface using the usual ip4_addr or ip6_addr settings. For instance: ip4_addr='lo0|192.168.2.10' Closes #46 --------- Co-authored-by: dgeo <[email protected]>
- Loading branch information