This page was last edited on November 24, 2017, at 09:50.
Comments or questions about this documentation? Contact us for support!
You can control access to GMS APIs by configuring your firewall to allow or block other hosts (such as public internet, intranet, specific IP addresses, and so on) from accessing TCP/IP ports on the host where GMS is running.
You can configure and enable port control through the following process:
You can control port access to GMS APIs by adding a port_restrictions section in the GMS configuration, at the node level or cluster level. This section is optional and not defined in the default template. The content of this section is a list of key/values. Where key is an URI pattern (/genesys/1/storage/*, /genesys/1/service/*, /genesys/1/service/request-interaction, and so on), and the value is a list of ports or a port range.
Example port_restrictions section:
Option Name | Option Value | Description |
---|---|---|
/genesys/1/storage* | 80-90 | Storage API will be accessible from port 80 to port 90. |
/genesys/1/service/* | 92-98,100 | Services API will be accessible from port 92 to port 98, plus the port 100. |
Notes:
Example code snippet:
Example Set connectors section:
<!-- =========================================================== --> <!-- Set connectors --> <!-- =========================================================== --> <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"><Property name="jetty.host" /></Set> <Set name="port"><Property name="jetty.port" default="8080"/></Set> <Set name="maxIdleTime">300000</Set> <Set name="Acceptors">2</Set> <Set name="statsOn">false</Set> <Set name="confidentialPort">8443</Set> <Set name="lowResourcesConnections">20000</Set> <Set name="lowResourcesMaxIdleTime">5000</Set> </New> </Arg> </Call> <!-- Paste Port Definition Snippet here -->
2. Restart GMS.