Methods of programatically altering ipsec rules with C#?

后端 未结 3 1467
灰色年华
灰色年华 2021-01-21 10:33

The only method I know how to execute IPsec changes involves calling netsh to do the changes. Is there a method using System.Management and WMI objects directly? If so, what is

3条回答
  •  滥情空心
    2021-01-21 11:30

    In IIS 7 IP restriction can be manipulate directly from config file, without messing with metadatabase. For easy maintenance config file can be split with configSource so that IPSecure section can be saved into it's own file.

    Full article:
    http://boseca.blogspot.com/2010/12/programmatically-addremove-ip-security.html

提交回复
热议问题