# Die IP-Adresse in den Benutzerinformationen von Discourse zeigt die IP-Adresse von CloudFlare an

**URL:** https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556
**Category:** Sysadmins
**Tags:** chinese-translation
**Created:** [19. Mai 2023 um 12:49 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556 "2023-05-19T12:49:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [19. Mai 2023 um 12:49 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/1 "2023-05-19T12:49:42Z")

</div>

Da die umgekehrte Adresse von CloudFlare verwendet wird.

Alle IP-Adressen, die Discourse für Benutzer erhält, sind tatsächlich die Adressen der CloudFlare-Server.

 ![](https://global.discourse-cdn.com/meta/original/4X/e/f/9/ef931ac222e04cf9f28f17f11c3e3a0a893da6a3.png)

## Änderung

Glücklicherweise hat Discourse bereits eine entsprechende Lösung bereitgestellt.

Sie müssen die folgenden Inhalte zur Konfigurationsdatei von Discourse hinzufügen:

- „templates/cloudflare.template.yml“

 ![](https://global.discourse-cdn.com/meta/original/4X/f/3/8/f38f7026e9bc57147cb5e6a346c665d6d665387f.png)  
Bauen Sie dann Ihre Discourse-Installationsinstanz neu.

`./launcher rebuild app`

Mit dem obigen Befehl kann Discourse direkt neu erstellt werden. Beachten Sie, dass der Neuaufbau etwa 10 Minuten dauert und das System während dieser 10 Minuten nicht zugänglich ist.

Aktualisieren Sie das System nach dem erneuten Aktualisieren, um zu sehen, dass das System jetzt normale IP-Adressen abrufen kann.

 ![](https://global.discourse-cdn.com/meta/original/4X/9/c/6/9c6589360724963541a267860be28b732640a755.png)

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [26. Februar 2024 um 13:28 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/2 "2024-02-26T13:28:18Z")

</div>

Großer Bruder, wird hier CloudFlare CDN-Proxy-Beschleunigung verwendet? Warum erhalte ich hier immer eine 502-Meldung von CloudFlare zum Ursprungsserver? Manchmal funktioniert es, aber der Ursprungsserver befindet sich in China. Liegt es am Netzwerk, am SSL-Zertifikat oder gibt es etwas zu beachten bei der CloudFlare-Konfiguration?

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [6. März 2024 um 07:31 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/3 "2024-03-06T07:31:45Z")

</div>

Ich nutze den CloudFlare-Dienst.

Bisher sind keine 502-Fehler aufgetreten. Es ist wahrscheinlich, dass die Antwortzeit Ihres Ursprungsservers den eingestellten Grenzwert überschritten hat.

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [6. März 2024 um 07:52 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/4 "2024-03-06T07:52:23Z")

</div>

Das Problem wurde gefunden. Ich habe eine interne Weiterleitung über TCP-Lastenausgleich eingerichtet, die nicht richtig konfiguriert war. Später wurde sie behoben. Da sich der Ursprungsserver jedoch in China befindet, wurde die Nutzung von Cloudflare stattdessen langsamer. Ich habe Cloudflare inzwischen aufgegeben. Die interne Weiterleitung beinhaltet auch die Auflösung der Benutzer-IP-Adresse. Die Verwendung von `real_ip_header proxy_protocol` hat dies aufgelöst.

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [6. März 2024 um 08:06 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/5 "2024-03-06T08:06:35Z")

</div>

Es gibt Probleme mit der ICP-Registrierung. Wenn es sich um einen Server in China handelt und keine Registrierung erforderlich ist, ist die Nutzung der Full-Site-Datenbeschleunigung von Tencent möglicherweise besser als CloudFlare.

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [6. März 2024 um 08:30 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/6 "2024-03-06T08:30:17Z")

</div>

Die Registrierung ist erledigt, ich habe die von Alibaba ausprobiert, die Beschleunigung ist in Ordnung, aber sie ist ziemlich teuer. Wie sind die Gebühren von Tencent? CloudFlare ist kostenlos.

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [6. März 2024 um 08:39 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/7 "2024-03-06T08:39:10Z")

</div>

> [@sober](#):
>
> Tencent Gebühren

Nicht gerade billig, diese Website: [https://www.cwikius.cn/](https://www.cwikius.cn/) Wir haben Tencents Beschleunigung genutzt, und wir hatten sowieso nicht viel Traffic.

 ![Snag_536c81](https://global.discourse-cdn.com/meta/original/4X/2/9/f/29f83c73345efb57f87c41c46de96383d8576e8f.png)

Im Moment sind es weniger als 5 Yuan pro Monat.

---

<div class="post-metadata">

### Author: ![sober](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sober/32/344783_2.png) [@sober](https://meta.discourse.org/u/sober)
#### Post date: [6. März 2024 um 09:00 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/8 "2024-03-06T09:00:20Z")

</div>

Verstanden, danke für Ihr Feedback und Ihre Unterstützung.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [28. März 2024 um 17:19 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/9 "2024-03-28T17:19:49Z")

</div>

Als ich Ubuntu benutzte, konnte ich mit dieser Zeile die echte IP-Adresse sehen. Aber wenn ich Rocky 9.3 benutze, kann ich nach dem Hinzufügen dieser Zeile nicht neu starten.

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [28. März 2024 um 17:53 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/10 "2024-03-28T17:53:30Z")

</div>

> [@5804829](#):
>
> rocky 9.3

Es könnte ein Problem mit der Betriebssystemversion sein.

Offiziell verwenden sie Ubuntu, aber es ist auch in einem Container bereitgestellt, daher sollte es keinen großen Unterschied machen, welches Betriebssystem Sie verwenden.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [28. März 2024 um 18:06 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/11 "2024-03-28T18:06:15Z")

</div>

## Ich bin auf Ubuntu 22.04 umgestiegen und erhalte immer noch denselben Fehler FAILED

Pups::ExecError: /tmp/add-cloudflare-ips ist mit Rückgabe fehlgeschlagen #\<Process::Status: pid 4279 exit 8\>  
Ort des Fehlschlags: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec\_command.rb:132:in `spawn’  
exec ist mit den Parametern „/tmp/add-cloudflare-ips“ fehlgeschlagen  
Bootstrap ist mit Exit-Code 8 fehlgeschlagen  
\*\* BOOTSTRAP FEHLGESCHLAGEN \*\* Bitte scrollen Sie nach oben und suchen Sie nach früheren Fehlermeldungen, es kann mehr als eine geben.  
./discourse-doctor kann bei der Diagnose des Problems helfen.

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [28. März 2024 um 19:00 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/12 "2024-03-28T19:00:58Z")

</div>

Es scheint, dass es beim Ausführen von Discourse einen Fehler gibt. Wurde ein Docker-Container auf dem Server installiert?

Wie lautet die Version von Docker?

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [29. März 2024 um 00:18 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/13 "2024-03-29T00:18:35Z")

</div>

Docker Version 26.0.0, Build 2ae903e

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [29. März 2024 um 03:04 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/14 "2024-03-29T03:04:07Z")

</div>

Früher mit OCI war alles in Ordnung, aber jetzt mit Alibaba Cloud funktioniert es nicht. Gibt es vielleicht Sicherheitsmaßnahmen bei Alibaba Cloud?!

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [29. März 2024 um 03:44 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/15 "2024-03-29T03:44:15Z")

</div>

Es ist möglich.

Viele inländische Betriebssystemversionen sind stark modifiziert. Einige Dinge können nicht verwendet werden.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [29. März 2024 um 09:35 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/16 "2024-03-29T09:35:34Z")

</div>

Nach einem Neustart des Servers war es auf unerklärliche Weise wieder in Ordnung…

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [29. März 2024 um 14:37 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/17 "2024-03-29T14:37:17Z")

</div>

Das ist auch seltsam. Allein aus dem Fehler kann man nichts erkennen.

---

<div class="post-metadata">

### Author: ![5804829](https://avatars.discourse-cdn.com/v4/letter/5/7cd45c/32.png) [@5804829](https://meta.discourse.org/u/5804829)
#### Post date: [11. April 2024 um 11:16 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/18 "2024-04-11T11:16:33Z")

</div>

Pups::ExecError: /tmp/add-cloudflare-ips fehlgeschlagen mit Rückgabewert #\<Process::Status: pid 5134 exit 8\>  
Fehlerort: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec\_command.rb:132:in `spawn’  
exec fehlgeschlagen mit den Parametern “/tmp/add-cloudflare-ips”  
bootstrap fehlgeschlagen mit Exit-Code 8  
\*\* BOOTSTRAP FEHLGESCHLAGEN \*\* Bitte scrollen Sie nach oben und suchen Sie nach früheren Fehlermeldungen, es kann mehr als eine geben.  
./discourse-doctor kann bei der Diagnose des Problems helfen.  
f51291d274ba2564076ba412f28fb445db9c916f00a6d1fb76d2613e773ccfcf  
Ich weiß nicht, was das ist!!!

---

<div class="post-metadata">

### Author: ![honeymoose](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeymoose/32/198718_2.png) [@honeymoose](https://meta.discourse.org/u/honeymoose)
#### Post date: [11. April 2024 um 21:12 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/19 "2024-04-11T21:12:24Z")

</div>

Es scheint, dass andere dieses Problem auch hatten. Bitte beziehen Sie sich auf Folgendes: [Failed to bootstrap (/tmp/add-cloudflare-ips) - #21 by GreenOWL](https://meta.discourse.org/t/failed-to-bootstrap-tmp-add-cloudflare-ips/221667/21)

---

<div class="post-metadata">

### Author: ![joo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joo/32/334852_2.png) [@joo](https://meta.discourse.org/u/joo)
#### Post date: [12. April 2024 um 02:14 UTC](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556/20 "2024-04-12T02:14:21Z")

</div>

Gibt es hier jemanden, der Bilibili-Videos analysieren kann? Das Plugin, das ich zuvor verwendet habe, scheint jetzt nicht mehr zu funktionieren.

[Next page](https://meta.discourse.org/t/the-ip-address-in-discourse-s-user-information-shows-cloudflare-s-ip-address-discourse-ip-cloudflare-ip/265556.md?page=2)
