0 Replies Latest reply on Aug 3, 2015 8:49 AM by Juan A. S.

    Listen on multiple addresses (but not all)

    Juan A. S. Newbie

      Hi

       

      Is it possible to make JBoss (EAP 6.3.3) listen some services on multiple address? My server has many interfaces: backend, management, service, backup and storage. I have configured JBoss to make all traffic go to the backend network. Now I want that web ports (AJP, HTTP and HTTPS), listen also by the service network and the loopback address. I have tried some configurations without success.

       

      First, I tell the socket bindings use the interface i will create:

       

      <socket-binding-groups>
          <socket-binding-group name="full-ha-sockets" default-interface="backend">
              <socket-binding name="ajp" interface="accesoweb" port="8009"/>
              <socket-binding name="http" interface="accesoweb" port="8080"/>
              <socket-binding name="https" interface="accesoweb" port="8443"/>
              <!-- .... -->
          </socket-binding-group>
      </socket-binding-groups>
      
      
      

       

      And then I create the interface; tried this:

       

      <interfaces>
          <!-- ..... -->
          <interface name="accesoweb">
              <any>
                  <loopback/>
                  <inet-address value="127.0.0.1"/>
                  <inet-address value="10.159.84.57"/>
                  <inet-address value="10.159.105.57"/>
                  <inet-address value="192.168.200.8"/>
              </any>
          </interface>
      </interfaces>
      
      
      

       

      But it only listens in one interface (verified with netstat). Also tried, with the same result:

       

      <interfaces>
          <!-- ..... -->
          <interface name="accesoweb">
              <loopback/>
              <inet-address value="127.0.0.1"/>
              <inet-address value="10.159.84.57"/>
              <inet-address value="10.159.105.57"/>
              <inet-address value="192.168.200.8"/>
          </interface>
      </interfaces>
      
      
      

       

      Any help?

       

      Regard and thanks in advance.