How can my Windows VM on Linux access a whitelisted website?

0
15
Asked By TechyCat123 On

I'm trying to get my Windows virtual machine, which is running on a Linux host, to access a specific website (let's say xyz.com). On my Meraki firewall, I've set it up to block all outbound internet access except for whitelisted sites, including xyz.com. My Linux host can successfully access xyz.com using 'curl', but attempts from the Windows VM get blocked, indicating the firewall is functioning properly. I've got an iptables rule in place that seems correct. The VM's IP address is 192.168.122.9, but when I use PowerShell to 'curl xyz.com', it just hangs. I'm looking for advice on how to troubleshoot this further.

5 Answers

Answered By SysAdminWhiz On

You'll want to examine how your Windows VM is set up for networking. Make sure it is using a bridged or NAT configuration, since this can significantly impact connectivity.

Answered By CommandLineNinja On

When using curl, consider setting the user agent as this can sometimes help with access issues. Additionally, switching from PowerShell to CMD was a game changer for me.

Answered By FirewallFanatic On

Make sure to identify how you're getting denied access. Is it the 80/443 port rule that's affecting it? Also, try running the real curl command from the CMD, not PowerShell, to see if that makes a difference.

Answered By NetGuru007 On

First, check if your Windows VM is configured on the correct subnet and is using the right network adapter, like a bridged or virtual adapter. Sometimes, this can cause issues accessing the internet.

Answered By CurlMaster2020 On

You might want to check if the domain can even be resolved through DNS. If you can access the web server by its IP rather than the DNS name, that's a good start.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.