BastilleBSD / bastille

Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
https://bastillebsd.org
BSD 3-Clause "New" or "Revised" License
854 stars 136 forks source link

[ENHANCEMENT]availability of ip4/6 = inherit mode #369

Open s1dh opened 3 years ago

s1dh commented 3 years ago

an inherit mode for sharing host IP address would be usefull

It is provided by jail() and even iocage too

cedwards commented 3 years ago

Can you provide examples and/or usage?

s1dh commented 3 years ago

inherit is a possible value for ip4/ip6 core parameter of jail(8) to use host's listening address, It is very handy to quickly test jailed services (upgrade/migration) on hosted testing servers, no need to setup IP for the jail so you can zfs send/recv jail from one test server to another very easily.

cedwards commented 2 years ago

I threw together a patch to support ip4/ip6 inherit. Will do a bit more testing before I merge.

bmac2 commented 1 year ago

@cedwards was this patch merged previously????? What PR was it under?

jazzi commented 6 months ago

Here is my usage that needs this feature @cedwards

I have a very simple home server, just two services: NFS and Mpd music server, to simplify life I don't want to remember two IPs, just want all share the same IP with the host. Lazy? but easy.