תגובה לשגיאה "אינך יכול להתחבר מכתובת IP זו", אך ה-IP אינו חסום

סיכום מבוסס בינה מלאכותית

The discussion addresses the error “You can’t log in from that IP address” despite the IP not being blocked, particularly when using Cloudflare to proxy a Discourse server. gigperformer explains that enabling Cloudflare proxying caused the issue because all traffic appeared to come from Cloudflare’s IP addresses, triggering login restrictions. pfaffman clarifies that using the templates/cloudflare.template.yml in the app.yml file is necessary to properly handle Cloudflare’s IP mapping, allowing Discourse to recognize the actual user IPs. gigperformer thanks the community for the solution.

נתקלנו בבעיה זו לפני מספר שבועות, אך חיפושים הובילו אותנו רק לדיונים על הבעיה וללא פתרונות אמיתיים.

עם זאת, גילינו שהסיבה שבגללה נתקלנו בבעיה היא שניסינו להעביר את שרת ה-discourse שלנו דרך Cloudflare (שמעביר ומגן בהצלחה על השרת הראשי שלנו כבר די הרבה שנים) בניסיון לעצור חלק מהספאם של AI, ש-Cloudflare כבר עושה עבור השרת הראשי שלנו.

אבל ברגע שעשינו זאת, המשתמשים והמנהלים שלנו החלו לראות את השגיאה לגבי אי-יכולת להתחבר “מה-IP הזה”. ברגע שהסרנו את הפרוקסי (זו צריכה להיות מילה) מהדומיין המשני, הכל התחיל לעבוד שוב בצורה מושלמת.

אז זה מעלה את השאלה מדוע העברת ה-discourse דרך Cloudflare גרמה לבעיה ואולי מרמזת על פתרון? האם שרת ה-discourse מחליט שהמארח שעליו הוא פועל הוא בעל כתובת IP שונה מזו שנחשפת על ידי Cloudflare? האם זו יכולה להיות הבעיה?

You need to use templates/cloudflare.template.yml in your app.yml or all of your access looks to Discourse like it’s coming from the Cloudflare IP addresses. If you block them, you’ll block all users using that same cloudflare server.

See also Discourse AI - Spam detection

תודה רבה על העזרה!