tasket / Qubes-vpn-support

VPN configuration in Qubes OS
GNU General Public License v3.0
126 stars 28 forks source link

as Disposable VM #26

Open akkuladezeit opened 5 years ago

akkuladezeit commented 5 years ago

i tryed to setup as an disposable VM, but the vm is stop immediately.

haplo commented 5 years ago

My guess is that a DispVM halts when the program for which the VM was started exits, and qubes-vpn-support runs in the background so its starting script exits.

Can I ask what is the use case for a VPN-in-a-DispVM?

akkuladezeit commented 5 years ago

why not? i got may locations to connect. all should be seperated. I cant ceate over 50vms ... so i thought i build an script to start/create the VM

tasket commented 5 years ago

@akkuladezeit If you don't need to connect to many VPNs at once you could change the link at ../vpn/vpn-client.conf to point to whichever location you need at the moment (using a regular proxyVM).

An alternative workaround is to launch a terminal for each dispVM connection, which should keep the dispVMs running.

Yet another workaround is to use one of my other tools Qubes-VM-hardening to populate the desired VPN config at VM startup... its simply a matter of putting the conf files in dirs named after the VPN VMs you intend to use.

one7two99 commented 2 years ago

Using the script in a disposable VM will work. The best way to do so is to use a named disposable VM. If you need further instruction how do do so, I can send you a how-to (von template based on fedora-33-minimal)