事象
WindowsServerに対して通信を行うも、通信エラーとなる。ネットワーク機器は通過をしているため、Windows側で通信がブロックされているように見える。
環境情報
- Windows Server 2023
原因/解決策
Windows ファイアウォールが有効となっている。
> netsh advfirewall show allprofiles Domain Profile Settings: ---------------------------------------------------------------------- State ON Firewall Policy BlockInbound,All ...
以下コマンドで無効化すると
>netsh advfirewall set allprofiles state off Ok.
通信は正常に通った。
以下、補足です。
補足
サーバ内でポートが開いているにも関わらず、外部サーバからWindowsServerへの通信(インバウンド)が失敗する場合は同設定が怪しいです。変更後は以下のように表示されました。
>netsh advfirewall show allprofiles Domain Profile Settings: ---------------------------------------------------------------------- State OFF Firewall Policy BlockInbound,AllowOutbound LocalFirewallRules N/A (GPO-store only) LocalConSecRules N/A (GPO-store only) InboundUserNotification Disable RemoteManagement Disable UnicastResponseToMulticast Enable Logging: LogAllowedConnections Disable ...
以上、ご参考になれば幸いです。