Auto open URL in Sandbox

%3CLINGO-SUB%20id%3D%22lingo-sub-2801414%22%20slang%3D%22en-US%22%3EAuto%20open%20URL%20in%20Sandbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2801414%22%20slang%3D%22en-US%22%3E%3CP%3EGreetings%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20have%20%3CEM%3Esome%3C%2FEM%3E%20URLs%20automatically%20open%20in%20the%20browser%20in%20a%20running%20Windows%20Sandbox%20(Hyper-V%20virtual%20machine)%20instead%20of%20my%20local%20browser.%3C%2FP%3E%3CP%3EI%20found%20some%20approaching%20solutions%20around%2C%20but%20none%20that%20does%20that%20fully.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CU%3EUse%20case%3A%3C%2FU%3E%3C%2FP%3E%3CP%3EI%20am%20using%20the%20Windows%20Sandbox%20to%20connect%20to%20my%20company%20network%20(VPN)%20without%20loosing%20access%20to%20internet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3E%3CP%3E-%20The%20Sandbox%20is%20connected%20to%20the%20company%20VPN%20-%20which%20gives%20access%20to%20company%20resources%20but%20cuts%20outbound%20internet%20access.%3C%2FP%3E%3CP%3E-%20I%20can%20still%20access%20internet%20from%20Windows%2010%20outside%20the%20Sandbox%3CBR%20%2F%3E(My%20company%20VPN%20doesn't%20allow%20split-tunnelling)%3C%2FP%3E%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3E-%20The%20Sandbox%20is%20connected%20to%20the%20company%20VPN%20-%20which%20gives%20access%20to%20company%20resources%20but%20cuts%20outbound%20internet%20access.-%20I%20can%20still%20access%20internet%20from%20Windows%2010%20outside%20the%20Sandbox(My%20company%20VPN%20doesn't%20allow%20split-tunnelling)%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20clicking%20on%20hypertext%20links%20in%20e-mail%20(for%20instance)%20outside%20the%20Windows%20Sandbox%2C%20they%20automatically%20open%20in%20Microsoft%20Edge%20(OK%20that's%20normal).%3C%2FP%3E%3CP%3EBut%20for%20the%20links%20that%20are%20towards%20my%20company%20network%20(for%20instance%3A%20jira.avsimulation.com)%2C%20%3CSTRONG%3EI%20would%20like%20them%20to%20open%20in%20MS%20Edge%20%3CU%3E%3CEM%3Einside%20the%20Sandbox%3C%2FEM%3E%3C%2FU%3E%3C%2FSTRONG%3E%2C%20even%20though%20I%20clicked%20on%20the%20link%20outside%20the%20Sandbox.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22lia-spoiler-container%22%3E%3CA%20class%3D%22lia-spoiler-link%22%20href%3D%22%23%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ESpoiler%3C%2FA%3E%3CNOSCRIPT%3E(Highlight%20to%20read)%3C%2FNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-border%22%3E%3CDIV%20class%3D%22lia-spoiler-content%22%3EBecause%20the%20Sandbox%20is%20connected%20to%20the%20VPN%2C%20and%20can%20open%20the%20link.%3CBR%20%2F%3EOpening%20in%20MS%20Edge%20outside%20the%20Sandbox%20results%20in%20%22can't%20reach%20this%20page%22%20of%20course.%3C%2FDIV%3E%3CNOSCRIPT%3E%3CDIV%20class%3D%22lia-spoiler-noscript-container%22%3E%3CDIV%20class%3D%22lia-spoiler-noscript-content%22%3EBecause%20the%20Sandbox%20is%20connected%20to%20the%20VPN%2C%20and%20can%20open%20the%20link.Opening%20in%20MS%20Edge%20outside%20the%20Sandbox%20results%20in%20%22can't%20reach%20this%20page%22%20of%20course.%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FNOSCRIPT%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3EOther%20potential%20use%20case%3A%3CBR%20%2F%3E%3C%2FU%3E%3C%2FP%3E%3CP%3EThis%20is%20not%20my%20use%20case%2C%20but%20the%20Windows%20Sandbox%20is%20often%20used%20for%20%22safe%20browsing%22%20when%20opening%20suspect%20URL%20links.%3C%2FP%3E%3CP%3EIt%20would%20be%20useful%20to%20automatically%20redirect%20certain%20links%20(that%20are%20not%20whitelisted)%20automatically%20to%20the%20Sandbox's%20internet%20browser.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3ESpecification%20of%20the%20need%20%2F%20expected%20behaviour%3A%3C%2FU%3E%3C%2FP%3E%3CP%3E1.%20In%20Windows%2010%2C%20have%20the%20Windows%20Sandbox%20(Hyper-V)%20running%3C%2FP%3E%3CP%3E2.%20In%20Windows%2010%20(outside%20the%20Sandbox)%2C%20click%20on%20a%20URL%20starting%20by%20%22something.com%22%3C%2FP%3E%3CP%3E3.%20If%20%22something.com%22%20is%20in%20the%20%22redirect%22%20list%2C%20the%20link%20opens%20in%20MS%20Edge%20in%20the%20Windows%20Sandbox%3C%2FP%3E%3CP%3E4.%20If%20%22something.com%22%20is%20not%20in%20the%20%22redirect%22%20list%2C%20the%20link%20opens%20in%20MS%20Edge%20in%20Windows%2010%20(outside%20the%20Sandbox)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3ELeads%20%2F%20ideas%3A%3C%2FU%3E%3C%2FP%3E%3CP%3E-%20The%20IP%20address%20of%20the%20Windows%20Sandbox%20is%20known%20(can%20also%20be%20forced)%3C%2FP%3E%3CP%3E-%20The%20hosts%20file%20can%20redirect%20any%20link%20to%20the%20Windows%20Sandbox%20IP%20-%20but%20the%20Windows%20Sandbox%20is%20not%20the%20server%2C%20it's%20only%20the%20intermediary...%20%3A%5C%3C%2Fimg%3E%3C%2FP%3E%3CP%3E-%20There%20are%20tools%20like%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fdamienvanrobaeys%2FRun-in-Sandbox%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fdamienvanrobaeys%2FRun-in-Sandbox%3C%2FA%3E%26nbsp%3Bto%20open%20the%20Sandbox%20by%20script%20and%20run%20things%20in%20it%20the%20Sandbox.%20But%20in%20this%20example%20it%26nbsp%3B%3CEM%3Eopens%3C%2FEM%3E%20the%20Sandbox%20instead%20of%20sending%20the%20instruction%20to%20open%20inside%20an%26nbsp%3B%3CEM%3Ealready%20running%3C%2FEM%3E%20Sandbox%3C%2FP%3E%3CP%3E-%20Batch%20file%2C%20Powershell%20scripting%2C%20...%20I%20haven't%20found%20evidence%20of%20a%20complete%20chain%20of%20tools%20that%20can%20do%20what%20I%20want%2C%20but%20I'm%20hopeful%20it%20exists.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20anyone%20who%20can%20help%20discuss%20towards%20a%20solution%20!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Greetings,

 

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.

Use case:

I am using the Windows Sandbox to connect to my company network (VPN) without loosing access to internet.

 

Spoiler

- 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.

 

Spoiler
Because the Sandbox is connected to the VPN, and can open the link.
Opening in MS Edge outside the Sandbox results in "can't reach this page" of course.

 

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 !

0 Replies