You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to create a jail with IP address already used on host. I have this set up on machine with older ioc and it worked fine. Latest version add IP alias and that is why network is broken after process completes.
ioc create ioc/foo ip4_addr="igb1|8.8.8.8"
I tried a few other options but digging through source code I can see alias is added in all use cases except DHCP option
Is this intentional? Or broken feature?
The text was updated successfully, but these errors were encountered:
Before adding a new alias to an interface, we could verify that no other interface has claimed it, so that a jail does not steal the hosts default address. If that is the case, the jail should refuse to start, so that the IP is not removed on jail shutdown.
Actions to mitigate this issue:
Verify the absence of non-VNET IPs before starting the jail
@urosgruber sorry for the late response. You are right, in this case you would need to supply the jail with the ip4.addr parameter, while not removing the IP from the interface on teardown. I can't imagine a scenario where I would want to borrow an IP address of the host, but if you say that's a thing, we should find a solution for this.
I suggest that we allow users to override final jail parameters. ip4_addr is an ioc(age) config parameter. params.ip4.addr could be a user defined override for whatever ioc would start the jail with.
I was trying to create a jail with IP address already used on host. I have this set up on machine with older ioc and it worked fine. Latest version add IP alias and that is why network is broken after process completes.
ioc create ioc/foo ip4_addr="igb1|8.8.8.8"
I tried a few other options but digging through source code I can see
alias
is added in all use cases except DHCP optionIs this intentional? Or broken feature?
The text was updated successfully, but these errors were encountered: