5.8. 管理インターフェースへの HTTP および HTTPS 接続に Distinct インターフェースを使用
管理インターフェースは、HTTP および HTTPS 接続の異なるインターフェースでリッスンできます。1 つのシナリオでは、外部ネットワークの暗号化されたトラフィックをリッスンし、内部ネットワークで暗号化されていないトラフィックを使用します。
secure-interface
属性は、インターフェース属性で指定されたものとは異なるインターフェースを使用する場合は、HTTPS 管理通信のホストのソケットを開くネットワーク インターフェース
を指定します。指定されない場合は、interface 属性で指定された インターフェース
が使用されます。
secure-port
属性が設定されていない場合は、secure-interface
属性は機能しません。
サーバーが 同じ インターフェースの HTTP および HTTPS トラフィックをリッスンすると、HTTP リスナーによって受信される HTTPS 要求は自動的に HTTPS ポートにリダイレクトされます。HTTP および HTTPS トラフィックに 個別 のインターフェースが使用される場合、HTTP リスナーが HTTPS 要求を受信する際にリダイレクトは実行されません。
以下は、HTTP トラフィックとは異なるインターフェースで HTTPS トラフィックをリッスンするように
secure-interface
属性を設定する EAP_HOME/domain/configuration/host.xml
設定例になります。
<?xml version='1.0' encoding='UTF-8'?> <host name="master" xmlns="urn:jboss:domain:3.0"> <management> <security-realms> <security-realm name="ManagementRealm"> <authentication> <local default-user="$local" /> <properties path="mgmt-users.properties" relative-to="jboss.domain.config.dir"/> </authentication> </security-realm> </security-realms> <management-interfaces> <native-interface security-realm="ManagementRealm"> <socket interface="management" port="${jboss.management.native.port:9999}"/> </native-interface> <http-interface security-realm="ManagementRealm"> <socket interface="management" port="${jboss.management.http.port:9990}" secure-port="${jboss.management.https.port:9943}" secure-interface="secure-management"/> </http-interface> </management-interfaces> </management> <domain-controller> <local/> <!-- Alternative remote domain controller configuration with a host and port --> <!-- <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm"/> --> </domain-controller> <interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface name="secure-management"> <inet-address value="${jboss.bind.address:10.10.64.1}"/> </interface> </interfaces> </host>