In this post we can see how to disable Outbound Internet Connectivity from a VM.
- Outbound Connections are Originated From the system
Step1 : Create an NSG (Network Security Group)
Step 2: Disable Internet
Go to the Outbound Security Rules. By default there will be 3 rules which enables Internet.
We need to create a new rule with Lower Priority Number so it will be picked first.
Click the Add Rule button. Make the following changes.
Step 3: Associate NSG with VM
Now go to the VM > Change the NSG to the new one.
Step 4: Test Connectivity
Restart the VM > Go to RDP > Open Internet Explorer > Try www.bing.com
You should not get the page displayed. It ensures Internet Connectivity is disabled now.