-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENHANCEMENT] IP management not flexible #347
Comments
I wanted to create a VNET jail with an additionnal lo aliased interface for acting like a reverse proxy with a hoster failover public IP that would redirect to LAN backend. It failed (because of the vnet nature of the interface I presume). Then I considered a non vnet approach and add public and local IP like the way you describe and it works. Of course multiple IP integration in bastille's jails manager would be a great feature. |
@michael-o Is this only for non-VNET jails? PR #783 allows adding/removing interfaces from VNET and bridged jails, although no support for multiple IPs (yet) |
Support is now added to PR #783 to add multiple interfaces to jails. This follows the format requested above, although there is still no support for multiple IPs. See
And the resulting jail.conf
|
Ive chosen to leave the default interface and not allow removal using the "network" subcommand. But you can add as many as you want and should only be limited by the number of interfaces you have on your system. |
Looking at the comment above, it applies to other cases as well. I was able to move to VNET after some time since I was able to get a VLAN w/o a MAC limitation, but I still consider the request to be valuable for others. |
This would require serious consideration as it breaks such commands as "bastille config jail get ip4.addr" I'm really not sure what the best way forward would be. |
I've implemented this now in my own fork of bastille. Basically jails now get created without the "interface" part and all interface/ip pairs are now in the form of "interface|ip" allowing easy addition of any interfaces (VNET and non-VNET) |
And it has support for IPv6 addresses. |
Now also supports adding multiple IP addresses for non-VNET jails.
|
Is your feature request related to a problem? Please describe.
I cannot assign multiple IPs to a regular jail. Support for multiple IPs would be good.
Describe the solution you'd like
I have
bce0
on the server, the jail is supposed to have a public IP on the same interface. Clonedlo1
for a local interface for the jail.I expect this to work:
this just doesn't because bastiile cannot parse this.
Describe alternatives you've considered
What I did is to modify the jail's
jail.conf
:Note that I cannot remove
interface
because bastille complains. From a jail's point of view I have provided the interface name in bothip4.addr
lines.Additional context
Bastille blindly assumes that every jail will have just one IP address or be VNET.
Note: I cannot use VNET jails for now because our datacenter switch allows on one MAC address per physical LAN port.
The text was updated successfully, but these errors were encountered: