Netsh firewall: allow a port just for a single interface

0

In Win7 with netsh I would like to allow a listening port only on a single interface and block it on all the other interfaces.

With the GUI this is possible using the "Protected Network Connections->Customize" in the snap-in properties.

enter image description here Source: windowsitpro.com/

In PowerShell too, the following command is available:

Set-NetFirewallProfile -Name Private -DisabledInterfaceAliases 'Connection Name'

Via COM it is possible to access the Interfaces property for a rule via the INetFwRule interface.

So what about netsh?

antonio

Posted 2014-09-26T09:56:27.317

Reputation: 647

possible duplicate of Firewalling VirtualBox: restrict host inbound connections to guests only

– Kenster – 2014-09-26T13:54:48.650

@Kenster Ok, redacted with more context – antonio – 2014-09-26T21:42:46.317

No answers