Is it possible to have one jailmaker jail be on multiple VLANs? #54
-
Hi! My current setup has a single docker-compose file which creates 5x macvlans, and attaches the relevant services to achieve segmentation. This works well as everything is consolidated and it only takes a single I'm playing around with jailmaker and looking to migrate across in preparation for Cobia, but couldn't find any documentation on attaching a single jail to multiple VLANs. Is this possible, and if so, how do I it? I'm hoping to not wind up in a situation where I have to execute Thank you in advance 😃 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think using host networking for the jail and then just running |
Beta Was this translation helpful? Give feedback.
-
I was also looking to do the same thing because I didn't want my jail/container to have access to my management VLAN which the TrueNAS web interface is bound to, so using host networking was not ideal. Since I already had bridges set up attached to the three VLANs I wanted to have accessible in the container (br10, br20, br50), I simply added multiple instances of macvlan into user arguments. I don't have a need for the jail/container to be able to contact the TrueNAS host, so that limitation is fine with me. Eg. I then created a static IP for each one by creating a new file in /etc/systemd/network/ Eg.
Hope this helps someone else out too :) |
Beta Was this translation helpful? Give feedback.
I think using host networking for the jail and then just running
docker compose up -d
in the directory where your compose file is would fit the bill.