Sep 30 2021 07:27 PM
Sep 30 2021 07:27 PM
I want to have some URLs automatically open in the browser in a running Windows Sandbox (Hyper-V virtual machine) instead of my local browser.
I found some approaching solutions around, but none that does that fully.
I am using the Windows Sandbox to connect to my company network (VPN) without loosing access to internet.
- The Sandbox is connected to the company VPN - which gives access to company resources but cuts outbound internet access.
- I can still access internet from Windows 10 outside the Sandbox
(My company VPN doesn't allow split-tunnelling)
When clicking on hypertext links in e-mail (for instance) outside the Windows Sandbox, they automatically open in Microsoft Edge (OK that's normal).
But for the links that are towards my company network (for instance: jira.avsimulation.com), I would like them to open in MS Edge inside the Sandbox, even though I clicked on the link outside the Sandbox.
Other potential use case:
This is not my use case, but the Windows Sandbox is often used for "safe browsing" when opening suspect URL links.
It would be useful to automatically redirect certain links (that are not whitelisted) automatically to the Sandbox's internet browser.
Specification of the need / expected behaviour:
1. In Windows 10, have the Windows Sandbox (Hyper-V) running
2. In Windows 10 (outside the Sandbox), click on a URL starting by "something.com"
3. If "something.com" is in the "redirect" list, the link opens in MS Edge in the Windows Sandbox
4. If "something.com" is not in the "redirect" list, the link opens in MS Edge in Windows 10 (outside the Sandbox)
Leads / ideas:
- The IP address of the Windows Sandbox is known (can also be forced)
- The hosts file can redirect any link to the Windows Sandbox IP - but the Windows Sandbox is not the server, it's only the intermediary... :\
- There are tools like https://github.com/damienvanrobaeys/Run-in-Sandbox to open the Sandbox by script and run things in it the Sandbox. But in this example it opens the Sandbox instead of sending the instruction to open inside an already running Sandbox
- Batch file, Powershell scripting, ... I haven't found evidence of a complete chain of tools that can do what I want, but I'm hopeful it exists.
Thank you for anyone who can help discuss towards a solution !