# Route OneAgent traffic from a remote environment to a local through internet

**URL:** <https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed\
**Created:** [August 27, 2023, 8:15am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378 "2023-08-27T08:15:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eslam\_saeid](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eslam\_saeid](https://community.dynatrace.com/u/Eslam_saeid)\
**Post date:** [August 27, 2023, 8:15am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/1 "2023-08-27T08:15:08Z")

</div>

What is the best practice to route OneAgent traffic from a remote environment to a local through internet as HLD and any special configuration?

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 27, 2023, 8:28am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/2 "2023-08-27T08:28:43Z")

</div>

Hi&nbsp;[@Eslam\_saeid](https://community.dynatrace.com/user/62323)

This is one of the [Cluster ActiveGate](https://docs.dynatrace.com/managed/shortlink/public-managed-sgw) (AKA CAG) roles as explained in&nbsp;[Dynatrace Managed connectivity scheme](https://docs.dynatrace.com/managed/shortlink/sgw-availability)

 ![Yosi_Neuman_1-1693124729103.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/1/f1cec4328dbd61a1ffa2e6e0dddfc8b0128baea8.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Eslam\_saeid](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eslam\_saeid](https://community.dynatrace.com/u/Eslam_saeid)\
**Post date:** [August 27, 2023, 8:33am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/3 "2023-08-27T08:33:34Z")

</div>

hi Yos

thanks for passing, we have alone of oneagent in the remote environment , is there is any possible to put AG in the remote environment and linked it the the cluster AG in the local environment?

Regards,

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 27, 2023, 8:39am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/4 "2023-08-27T08:39:43Z")

</div>

You are more than welcome&nbsp;[@Eslam\_saeid](https://community.dynatrace.com/user/62323)

Yes, you can place EAG between the OA and CAG

 ![Yosi_Neuman_0-1693125484390.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d9b4018b3cca73c6b0cc7a31a1eb92fc811a4e9f.png)

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Eslam\_saeid](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eslam\_saeid](https://community.dynatrace.com/u/Eslam_saeid)\
**Post date:** [August 27, 2023, 8:43am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/5 "2023-08-27T08:43:25Z")

</div>

can you feedback and how we will configure the remote Env AG to link it to the cluster AG

Regards,

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 27, 2023, 8:57am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/6 "2023-08-27T08:57:34Z")

</div>

First install the local CAG and be sure you see it from the CMC - deployment status of AG’s

After that, download the EAG and install it on the remote machine.

Make sure your FWs allows https connection from the remote EAG to the local CAG on port 9999

After your EAG will show up in your environment deployment status download the OA and install it on the remote machines.

Be ware that EAGs and OAs are looking for all the current available endpoints, hence the sequence of the above steps are essential.

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Eslam\_saeid](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@Eslam\_saeid](https://community.dynatrace.com/u/Eslam_saeid)\
**Post date:** [August 27, 2023, 10:41am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/7 "2023-08-27T10:41:47Z")

</div>

this is not working at all

thanks for your tries

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 27, 2023, 11:09am UTC](https://community.dynatrace.com/t/route-oneagent-traffic-from-a-remote-environment-to-a-local-through-internet/41378/8 "2023-08-27T11:09:17Z")

</div>

Actually it is working just fine for couple of our customers.

In order to check connection from EAG to the CAG run _curl -k https://\<CAG-IP\>:9999/rest/state&nbsp;,_ this&nbsp;should return running, if that is not working check the FW rules and the route tables.

Yos
