I looked into wf.msc (windows’ firewall) and it does not allow any prioritization. So you cannot exclude all traffic except from two exceptions. Any broad block rule supercedes any specific allow rule.

I also tried setting up firewall rules using powershell wich allows more finegrained control. But that failed as well…

I want to connect android studio to github so i can work on my FOSS apps from anywhere in the world. I also want to use virtualbox to connect to the great onlines safely.

How did you resolve this issue?

  • shrugs@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    4 days ago

    Haven’t worked with Windows for years, but this should work:

    The virtual machine needs to use a bridged network instead of NAT. This can be configured in virtualbox. Then you use your router to block the IP of your windows host and only allow the IP of the VM.

    No idea if android studio also supports bridging though.

    Edit: This also has the advantage, that it can’t be circumvented from inside your windows host