netshコマンドでWindows Firewallの新規メインモードのルールを追加

netsh コマンドにおいてWindows Firewallの新規メインモードのルールを追加するコマンドを紹介します。


スポンサード リンク

目的:
Windows Firewallの新規メインモードのルールを追加

コマンド:

C:\>netsh advfirewall mainmode add rule

使用方法:

使用法: add rule 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 (既定値 = yes)] [profile=any|current|public|private|domain[,...]] [endpoint1=any|||<サブネット> |<範囲>|<一覧>] [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)] [type=dynamic|static (既定値 = static)]

説明:
IP Sec メインモードに関するファイアウォールルールを追加します。


スポンサード リンク

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

netshコマンド一覧