I am trying to programmatically create an Outbound Windows firewall rule. In addition, I'd like to programmatically enable and disable this rule. How can I go about doing this in C#? Manually, I can do this by going into control panel, clicking on Windows Firewall, then clicking advanced settings.
8913 次
4 に答える
4
netsh advfirewall コマンド構文を小さなライブラリにラップして、必要に応じて設定を有効/無効にすることができます。それができない場合は、 http: //msdn.microsoft.com/en-us/library/windows/desktop/ff956124(v=vs.85).aspxで高度なセキュリティ API を使用した Windows ファイアウォールを参照してください。
于 2012-02-27T20:24:51.033 に答える