# Nextcloud requests got through external gateway

**URL:** <https://help.nextcloud.com/t/nextcloud-requests-got-through-external-gateway/177768>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** reverseproxy, aio, dns\
**Created:** [December 29, 2023, 6:18pm UTC](https://help.nextcloud.com/t/nextcloud-requests-got-through-external-gateway/177768 "2023-12-29T18:18:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 29, 2023, 8:08pm UTC](https://help.nextcloud.com/t/nextcloud-requests-got-through-external-gateway/177768/4 "2023-12-29T20:08:22Z")

</div>

funny thing I was seeing this issue for long time.

Nextcloud and Collabora running on the same Docker host where talking to each other using public IP despite the fact working #splitbraindns was in place and internal client, internet router and Docker host itself resolved the dns records to the local IP of the Docker host. I didn’t find the root cause - likely it it lies somewhere in the depth of routing and iptables used when you setup Docker containers.

long story short - I played a little with internal Docker DNS and found a good workaround - just add all the public DNS records as _alias_ to #reverseproxy container. for details look here

> [@Probably DNS help with NC Docker + Collabora + Wireguard tunnel](https://help.nextcloud.com/t/probably-dns-help-with-nc-docker-collabora-wireguard-tunnel/176562/5):
>
> finally I found time and motivation to test Docker [network alias](https://docs.docker.com/compose/compose-file/compose-file-v3/#aliases) feature to avoid network traffic through the internet for communication between Nextcloud and Collabora. Following instructions describe how to avoid the internet loop and route the traffic straight between Collabora ↔ Reverse Proxy ↔ Nextcloud which should improve your overall experience by removing all the delays from VPN tunnel and additional processing on the VPS metal Having a docker network proxy where all 3 co…

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-requests-got-through-external-gateway/177768)._
