No worries at all, your post didn’t come off as aggressive to me, and I totally get how tone can get lost in text, especially if English isn’t your first language. Your input’s been really helpful, so thanks for sticking with this!
I wanted to push back a little on the “problem that doesn’t really exist” part, not to argue, but to clarify where I’m coming from. About a year ago, I convinced a bunch of my friends to switch to Qubes OS. Most of them had zero Linux experience, so wrapping their heads around Qubes was tough. They lean on me for support when stuff goes wrong, and I turn to this forum for answers.
Recently, I noticed on two of their systems that vault had a netvm assigned, and they had no clue how it happened. That’s what sparked this whole idea: setting rules so vault never connects to the internet, even if someone accidentally hooks it up to a netvm. I hope that explains my position, it’s less about me and more about protecting less tech-savvy users.
Your sys-whonix note was a great heads-up, by the way, I hadn’t thought about how it can’t handle qvm-firewall rules for other qubes, so that’s good to keep in mind.
The dom0 script idea (checking every minute to confirm vault has no netvm, forcing it offline, and sending a warning if it changes) is a cool twist! Internal nftables setup (dropping all traffic) blocks internet access if a netvm gets added, but your script would catch it early and alert me, which adds peace of mind.
Have you got a rough script example for that, or is it more of an idea to play with? I’d love to try it out. Thanks again for the thoughtful input!
Well, it is actually not really recommended to install bunch of software in your vault VM. This action increases attack surface. This what you asked in first place, if i remember it correctly it was about vault VM…
Similar to @unman I have 0 problem to install anything in the template using either saltstack pipeline or qvm-run -u root your_template xterm.
I’m sorry, could you elaborate on how installing a bunch of software in vault increases the attack surface? I get that more software can mean more potential vulnerabilities, but since vault is offline, and I’m trying to ensure it stays offline even if a netvm is added, how would that risk come into play?
I appreciate everyone’s input, but this topic seems to be branching off in extra directions, so I’ll wind it down here. For now, I think my best path forward is to remove qubes-core-agent-networking from the template, if someone can clarify the issue I ran into earlier:
Any guidance on this would be great. Thanks again!
I couldn’t find a way to remove qubes-core-agent-networking using dnf without it also pulling out qubes-vm-recommended. After some digging, I went with the rpm command instead:
sudo rpm -e --nodeps qubes-core-agent-networking
This stripped out qubes-core-agent-networking cleanly, and now my vault qube has no network capabilities at all. Problem solved!
Big thanks to everyone who chimed in with ideas, especially @unman
for pointing me toward this. Really appreciate the help.
There is one issue with what you have done - you’ve left qubes-vm-recommended which is a meta-package. All that it does is
pull in other packages.
Since you have left it there, on an update, it’s possible that the
package will pull in qubes-core-agent-networking. You dont want that.
It’s better to removequbes-vm-recommended, but retain all the
packages it pulls in exceptqubes-core-agent-networking.
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
So, if I’m following you right, since qubes-vm-recommended is a meta-package that’s already pulled in all its dependent packages, and I’ve now uninstalled qubes-core-agent-networking, the only thing qubes-vm-recommended might do on an update is try to reinstall qubes-core-agent-networking and nothing else?
Does that mean removing qubes-vm-recommended itself at this point wouldn’t affect the other packages already installed, just stop it from bringing back the networking package?
Want to make sure I’ve got this straight, appreciate the heads-up!
No.
What would work for you is dnf remove --no-autoremove qubes-core-agent-networking.
That will remove the networking packages, and the meta package but
leave all the other “recommended” packages installed.
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
A minimal template created for a vault qube doesn’t necessarily require a bunch of extra apps to make it usable. For example, you could have a minimal template that has only a password manager installed, and that’s it. Having a separate template just for one qube isn’t a waste if your passwords are valuable enough to you. All security comes at some cost.
Also, you’re not limited to just one single template for all offline qubes. For example, your offline password manager qube and your offline photo editing qube don’t have to use the same template.
Thanks for the advice! You’re right, I should definitely separate my password manager into its own qube. I hadn’t thought of it that way, security’s worth the cost here. Appreciate the perspective!