netshコマンドでFirewallのメインモードのルール設定

netsh コマンドにおいてFirewallのメインモードのルール設定するコマンドを紹介します。


スポンサード リンク

目的:
Firewallのメインモードのルール設定

コマンド:

C:\>netsh advfirewall mainmode set rule

使用方法:

使用法: set rule name=<文字列> [profile=public|private|domain|any[,...]] [type=dynamic|static (既定値 = static)] new [name=<文字列>] [mmsecmethods= dhgroup1|dhgroup2|dhgroup14|dhgroup24|ecdhp256| ecdhp384:3des|des|aes128|aes192|aes256-md5|sha1|sha256| sha384[,...]|default] [mmforcedh=yes|no (既定値 = no)] [mmkeylifetime=<数値>min,<数値>sess] [description=<文字列>] [enable=yes|no] [profile=public|private|domain|any[,...]] [endpoint1=any|localsubnet|dns|dhcp|wins|defaultgateway ||<サブネット>|<範囲>|<一覧>] [endpoint2=any|localsubnet|dns|dhcp|wins|defaultgateway| ||<サブネット>|<範囲>|<一覧>] [auth1=computerkerb|computercert|computercertecdsap256| computercertecdsap384|computerpsk|computerntlm|anonymous[,...]] [auth1psk=<文字列>] [auth1kerbproxyfqdn=<完全修飾 DNS 名>] [auth1ca=" [certmapping:yes|no] [excludecaname:yes|no] [catype:root|intermediate (既定値 = root)] [certhash:<16 進数のハッシュ文字列 (空白および先頭の 0x を含まない)>] [followrenewal:yes|no (既定値 = no)] [certeku:] [certname:<証明書名>] [certnametype:] [certcriteriatype:] | ..."] [auth1healthcert=yes|no (既定値 = no)] [auth1ecdsap256ca=" [certmapping:yes|no] [excludecaname:yes|no] [catype:root|intermediate (既定値 = root)] [certhash:<16 進数のハッシュ文字列 (空白および先頭の 0x を含まない)>] [followrenewal:yes|no (既定値 = no)] [certeku:] [certname:<証明書名>] [certnametype:] [certcriteriatype:] | ..."] [auth1ecdsap256healthcert=yes|no (既定値 = no)] [auth1ecdsap384ca=" [certmapping:yes|no] [excludecaname:yes|no] [catype:root|intermediate (既定値 = root)] [certhash:<16 進数のハッシュ文字列 (空白および先頭の 0x を含まない)>] [followrenewal:yes|no (既定値 = no)] [certeku:] [certname:<証明書名>] [certnametype:] [certcriteriatype:] | ..."] [auth1ecdsap384healthcert=yes|no (既定値 = no)] [profile= any|current|domain|private|public[,...]]

説明:
IP Sec メインモードに関する新しいルールをセットします。


スポンサード リンク

本ページは2016年5月における情報を元に記載しています。今後仕様が変更になる場合があります。
情報の正確性は保証されません。自己責任で参考にしてください。

netshコマンド一覧