# Reverse proxy for Discourse | Real IP masking

**URL:** https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611
**Category:** Self-hosting
**Created:** [August 17, 2023, 8:08pm UTC](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611 "2023-08-17T20:08:47Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [August 17, 2023, 9:49pm UTC](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611/5 "2023-08-17T21:49:21Z")

</div>

Also remember to add correct `set_real_ip_from` directives in the Discourse container for the frontend’s ipv4 and ipv6 addresses. (See cloudflare.template.yml for an example)

---

_[View the full topic](https://meta.discourse.org/t/reverse-proxy-for-discourse-real-ip-masking/275611)._
