How to block outbound connections of virtual machine with netsh advfirewall?

I’m using VirtualBox on my pc (A) , I have a Win7 x32 virtual machine (B) with bridged adapter and if I’m not wrong that means B connections goes throws A interfaces, so I want to block B internet connection using A “iptables”:

netsh advfirewall firewall add rule name="B" dir=out action=block localip= interfacetype=any protocol=any

localip= B ip

But it’s not working, B can still go to Internet. What am I missing ?


Leave a Reply