Skip to content
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

Interesting script, what about netgraph? #1

Open
zenny opened this issue Feb 16, 2021 · 2 comments
Open

Interesting script, what about netgraph? #1

zenny opened this issue Feb 16, 2021 · 2 comments

Comments

@zenny
Copy link

zenny commented Feb 16, 2021

@genneko thanks for your notes posted online as well as this repo.

BTW, does one need to configure netgraph to use this package?

A pointer is at BastilleBSD/bastille#262 (comment).

Cheers and stay safe,
/z

@genneko
Copy link
Owner

genneko commented Feb 16, 2021

@zenny The script does all the netgraph configurations (ngctl mkpeer/connect etc.) required to create a ng_bridge and virutal ethernet interfaces for a vnet jail and a host. Kernel modules are also loaded automatically. So by using the script in /etc/jail.conf, there's no need to run ngctl nor kldload manually. That's my goal of this script (which is based on jng) and I'm pretty satisfied with it, at least for my needs.

BastilleBSD is a nice piece of software. Actually I forked it and had tried a bit adding netgraph-based vnet support with my script before giving up as I couldn't have much time unfortunately.

Thank you. Take care.
Gen

@zenny
Copy link
Author

zenny commented Feb 16, 2021

@zenny The script does all the netgraph configurations (ngctl mkpeer/connect etc.) required to create a ng_bridge and virutal ethernet interfaces for a vnet jail and a host. Kernel modules are also loaded automatically. So by using the script in /etc/jail.conf, there's no need to run ngctl nor kldload manually. That's my goal of this script (which is based on jng) and I'm pretty satisfied with it, at least for my needs.

Thanks for clarifications.

BastilleBSD is a nice piece of software.

Yep.

Actually I forked it and had tried a bit adding netgraph-based vnet support with my script before giving up as I couldn't have much time unfortunately.

I am also in the same bandwagon like you that the readymade jail provisioning scripts restricts several other aspects of powerful features of jails. I am loving your way of doing things. 👍

Have you ever thought of using sys/jailkit and/or sys/jailme to further isolate the jails in addition to using separate VLANs with vnet?

Thank you. Take care.
Gen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants