Hitachi

OpenTP1 Version 7 分散トランザクション処理機能 OpenTP1 使用の手引 Windows(R)編


4.7.2 Windowsファイアウォールの設定

Windowsファイアウォールの設定を行う場合は,%DCDIR%\binフォルダ,%DCDIR%\lib\serversフォルダ,%DCDIR%\aplibフォルダに配置しているプログラムを例外リストに登録してください。

コマンドプロンプトからWindows 7以降のnetshコマンドを使用した場合の実行例を次に示します。

for %p in ("%DCDIR%\bin\*.exe") do (netsh advfirewall firewall add rule name="OpenTP1" dir=in action=allow program="%p" enable=yes profile=public
for %p in ("%DCDIR%\lib\servers\*.exe") do (netsh advfirewall firewall add rulename="OpenTP1" dir=in action=allow program="%p" enable=yes profile=public
for %p in ("%DCDIR%\aplib\*.exe") do (netsh advfirewall firewall add rule name="OpenTP1 UAP" dir=in action=allow program="%p" enable=yes profile=public

OSの違いでnetshコマンドの実行方法が異なる場合がありますので,netshコマンドの詳細については,Windowsのコマンドヘルプを参照してください。

Windowsファイアウォールの設定時の注意事項を次に示します。