this post was submitted on 20 Mar 2025
6 points (100.0% liked)

techsupport

2673 readers
4 users here now

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

founded 2 years ago
MODERATORS
 

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?

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 day ago* (last edited 1 day ago) (1 children)

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

[–] [email protected] 2 points 1 day ago

Execellent!

[–] [email protected] 3 points 1 day ago

Realistically you're not going to be able to do that without breaking Windows in a way that will also break connectivity for those two applications.

[–] [email protected] 3 points 1 day ago (1 children)

Use Linux?

Anyway, why exactly do you use VirtualBox for all internet stuff? Simply don't download anything risky.

I haven't caught a virus for over ten years because I no longer download random exe files from the internet as I used to when I was younger.

[–] [email protected] 1 points 1 day ago (1 children)

What sort of exe files did you download if I may ask? games?

[–] [email protected] 1 points 1 day ago

Cracked games and cracked software.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

Windows fails to include a libre software license text file. We do not control it, anti-libre software.

So, to restrict its access to external resources such as networking, must be sandboxed in an enviroment we do control, such a virtualising it under a libre software operating system.

This is only harm reduction. We still do not control Windows itself, anti-libre software.