This section illustrates firewall gateway configuration in a three-hop network configuration.

The agents and the monitoring server at these zones needs to be configured as follows: Agents 3B, 3C, and 3D pointed directly to RMT3. RMT3 needs to be configured to point to TEMAG3, even if the configuration dialog asks for the hostname or address of the primary hub monitoring server. Agent3A as well as TEMAG3 itself should both point to TEMAG3.
In general, a gateway agent should point to itself, except for the final gateway, which should point to a monitoring server as usual. In this example, TEMAG1 should point to HUB.
In terms of node topology, all the agents and monitoring servers in this example that are pointed to the gateway agents will appear as if they are directly connected to the hub monitoring server.
<tep:gateway name="temag3"
xmlns:tep="http://xml.schemas.ibm.com/tivoli/tep/kde/" >
<zone name="least_trusted">
<!--
upstream interface, listens for incoming relay
connections, accepts traffic from downstream interfaces.
-->
<interface name="uprelay" ipversion="4" role="listen">
<bind localport="10030">10.3.1.1
<connection remoteport="10030">10.2.2.1
</connection>
</bind>
<!--
downstream interface, listens for incoming proxy
connections, routes traffic over upstream relay.
-->
<interface name="serverproxy" ipversion="4" role="proxy">
<bind localport="1918" service="tems"/>
<bind localport="63358" service="whp"/>
</interface>
</interface>
</zone>
</tep:gateway>
<tep:gateway name="temag22"
xmlns:tep="http://xml.schemas.ibm.com/tivoli/tep/kde/" >
<zone name="dmz2">
<!--
upstream interface, listens for incoming relay
connections, accepts traffic from downstream
interfaces
-->
<interface name="uprelay" ipversion="4" role="listen">
<bind localport="10022">10.2.2.1
<connection remoteport="10022">10.2.1.1</connection>
</bind>
<!--
downstream interface, originates relay connection to
downstream relay, routes traffic over upstream relay.
-->
<interface name="downrelay" ipversion="4" role="connect">
<bind localport="10030">10.2.2.1
<connection remoteport="10030">10.3.1.1</connection>
</bind>
</interface>
<!--
downstream interface, listens for incoming proxy
connections, routes traffic over upstream relay.
-->
<interface name="serverproxy" ipversion="4" role="proxy">
<bind localport="1918" service="tems"/>
<bind localport="63358" service="whp"/>
</interface>
</interface>
</zone>
</tep:gateway>
<tep:gateway name="temag21"
xmlns:tep="http://xml.schemas.ibm.com/tivoli/tep/kde/" >
<zone name="dmz1">
<interface name="uprelay" ipversion="4" role="listen">
<bind localport="10021">10.2.1.1
<connection remoteport="10021">10.1.1.1</connection>
</bind>
<interface name="downrelay" ipversion="4" role="connect">
<bind localport="10022">10.2.1.1
<connection remoteport="10022">10.2.2.1</connection>
</bind>
</interface>
<interface name="serverproxy" ipversion="4" role="proxy">
<bind localport="1918" service="tems"/>
<bind localport="63358" service="whp"/>
</interface>
</interface>
</zone>
</tep:gateway>
<tep:gateway name="temag1"
xmlns:tep="http://xml.schemas.ibm.com/tivoli/tep/kde/" >
<zone name="most_trusted">
<!--
upstream interface, traffic from downstream
interfaces and originates proxy connections on behalf
of downstream server proxy clients
-->
<interface name="clientproxy" ipversion="4" role="proxy">
<bind localport="poolhub" service="tems">
<connection remoteport="1918">10.1.1.1</connection>
</bind>
<bind localport="poolwhp" service="whp">
<connection remoteport="63358">10.1.1.1</connection>
</bind>
<!--
downstream interface, originates connection to
downstream relay, routes traffic to upstream proxy
-->
<interface name="downrelay" ipversion="4" role="connect">
<bind localport="10021">10.1.1.1
<connection remoteport="10021">10.2.1.1</connection>
</bind>
</interface>
</interface>
</zone>
<portpool name="poolhub">20000-20099</portpool>
<portpool name="poolwhp">20100-20199</portpool>
</tep:gateway>