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
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.
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.
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.
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.
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
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures