gucci-on-fleek / lockdown-browser

Run the ”Respondus Lockdown Browser“ in the ”Windows Sandbox“
Other
122 stars 23 forks source link

Error with date or firewall #49

Closed potasio1 closed 7 months ago

potasio1 commented 8 months ago

.

MasterKingSirPlease commented 8 months ago

I'm getting the same error, how did you solve it?

potasio1 commented 8 months ago

I'm getting the same error, how did you solve it?

still not solved

gucci-on-fleek commented 7 months ago

That's really weird. Is your date and time correct? If it is, try opening each of these links in a regular browser outside of the Sandbox:

https://server-profiles-respondus-com.s3-external-1.amazonaws.com
https://static-public-downloads-cloud.respondus.com
https://www.respondus.com
https://help-center-respondus-com.s3.amazonaws.com
https://smc-service-cloud.respondus2.com

It's fine if you get an “Access Denied” message, but if you get a “page not found” or “connection failure” message for any of those 5 links, then that suggests that you have a firewall issue of some sort. How you would fix that would depend on where the firewall is, but regardless, it wouldn't be a bug/issue with this project.

If all of those links work and your clock is correct, then I'm not sure what the issue is. Maybe try adding

<Networking>Enable</Networking>

to Sandbox.wsb, between <configuration>/</configuration>:

https://github.com/gucci-on-fleek/lockdown-browser/blob/7248e2999c70bd913345483873cfc8e623bc99a0/src/Sandbox.wsb#L6-L19

(source)

Make sure to fully-rebuild the files after changing that.

randon358 commented 7 months ago

how can i modify the clock? i am facing the same error and have added the networking into sandbox.wsb.

currently the clock on my default system is DD/MM/YYYY, but in sandbox it is MM/DD/YYYY

randon358 commented 7 months ago

it seems like if setting the time automatically would solve it, is there a workaround for this? photo_2024-02-26_12-08-36

gucci-on-fleek commented 7 months ago

@randon358

how can i modify the clock? i am facing the same error and have added the networking into sandbox.wsb.

Outside the Sandbox (on the host computer), I think that it's something like “Settings > Time and Language > Set Time and Date”. But the time is almost certainly correct on your host computer, and it'll sync automatically into the Sandbox, so I really doubt that that's the issue.

currently the clock on my default system is DD/MM/YYYY, but in sandbox it is MM/DD/YYYY

Nope, that's for sure not the issue. The only reason that you need the correct time is for TLS/PKI stuff, but that's all done in UTC, so your locale setting doesn't matter at all.

it seems like if setting the time automatically would solve it, is there a workaround for this? photo_2024-02-26_12-08-36

Are the date, time, and time zone all correct inside the Sandbox? If so, then it shouldn't really matter.

I'd guess that you're having the same issue as #58; that is, there's some weird firewall issue going on.

RalfAkar commented 7 months ago

I am also having the same problem. I ran the lockdown browser from the runtime_directory in the Windows sandbox and also tried to open the PowerShell and put this command: cd C:\Users\WDAGUtilityAccount\Desktop\runtime_directory\ .\withdll.exe /d:GetSystemMetrics-Hook.dll "C:\Program Files (x86)\Respondus\LockDown Browser\LockDownBrowser.exe"

I got this response: withdll.exe: DetourCreateProcessWithDllEx failed: 2

Maybe this helps to solve this problem.

UPDATE: I fixed the detour not working by copying the respondus file to program 86 files in the Windows sandbox.

But still getting the Unable to fetch server information from the primary and mirror servers. Please Check: The date and time settings in your PC (if incorrect, fix and restart windows) Your firewall/ proxy settings include LockDownBrowser.exe as a trusted application.

RalfAkar commented 7 months ago

If there is a way to fix this could you please explain since you have closed the issue?

gucci-on-fleek commented 7 months ago

@RalfAkar

If there is a way to fix this could you please explain since you have closed the issue?

I'm not the one who closed this issue, but have you tried the instructions in https://github.com/gucci-on-fleek/lockdown-browser/issues/49#issuecomment-1937011554?

That's really weird. Is your date and time correct? If it is, try opening each of these links in a regular browser outside of the Sandbox:

https://server-profiles-respondus-com.s3-external-1.amazonaws.com
https://static-public-downloads-cloud.respondus.com
https://www.respondus.com
https://help-center-respondus-com.s3.amazonaws.com
https://smc-service-cloud.respondus2.com

It's fine if you get an “Access Denied” message, but if you get a “page not found” or “connection failure” message for any of those 5 links, then that suggests that you have a firewall issue of some sort. How you would fix that would depend on where the firewall is, but regardless, it wouldn't be a bug/issue with this project.

If all of those links work and your clock is correct, then I'm not sure what the issue is. Maybe try adding

<Networking>Enable</Networking>

to Sandbox.wsb, between <configuration>/</configuration>:

https://github.com/gucci-on-fleek/lockdown-browser/blob/7248e2999c70bd913345483873cfc8e623bc99a0/src/Sandbox.wsb#L6-L19

(source)

Make sure to fully-rebuild the files after changing that.

That solved the issue for some other people (see https://github.com/gucci-on-fleek/lockdown-browser/issues/58#issuecomment-1951412482), so it's worth trying.

randon358 commented 7 months ago

the 5 links work with no issue and the clock is correct

i have added the networking into the files and the problem still occurs. perhaps it could be due to the VPN that the school requires using to access respondus

gucci-on-fleek commented 7 months ago

@randon358

i have added the networking into the files and the problem still occurs. perhaps it could be due to the VPN that the school requires using to access respondus

Ahh, yep, that's probably it. I'm not really sure how to fix it, but here are some ideas:

  1. Install the VPN inside the Sandbox. You'll need to reinstall it every time that you launch the Sandbox, so it'll be a bit annoying. And this may not even be possible—the VPN might need some low-level networking abilities that don't work inside the Sandbox. But if this does work, it's probably the easiest option.

  2. You can try bridging the network adapters. Here's a guide that looks mostly correct. You'll want to bridge the Sandbox's network adapter (probably named “Hyper-V” or something similar) to your VPN's adapter (which could be named just about anything). You'll probably have to fiddle around quite a bit with this option, but it should work eventually.

randon358 commented 7 months ago
  1. installed VPN inside the sandbox - vpn successfully downloaded and connected but same error still appears
  2. no networks are being detected inside the sandbox, even after connecting to the VPN there are still no networks
gucci-on-fleek commented 7 months ago

@randon358

  1. installed VPN inside the sandbox - vpn successfully downloaded and connected but same error still appears

Hmm, well that's disappointing.

  1. no networks are being detected inside the sandbox, even after connecting to the VPN there are still no networks

You need to bridge the network outside of the Sandbox, on your host computer. That way you're bridging the VPN into the Sandbox.

randon358 commented 7 months ago

these are the steps i did:

  1. created new virtual switch for hyperv through hyperv manager
  2. connected virtual switch to external network
  3. attempted to bridge vpn (pulse secure) with hyperv but stuck on loading page

not sure if this will work on school network

RalfAkar commented 7 months ago

From what I have read so far, it seems a bit hard to do this on my computer. Our computers are given by the school and come with an antivirus that can not be disabled. This might be interfering with the files. I am going to try these on another computer and will update if it works on the other computer.