ספאם שמגיע מכתובות IP פנימיות כמו 172.17.0.1?

Short story: I recently had a massive Spam on my discourse installation after to change a text template for the “email confirmation” that seeemed to be wrong (from an old install?) that the url had something like url/authorize_email/ , In the end I needed to apply a full forum recovery 5 days older…

Now I’m watching the logs to see if there’s more spambot attacks, but I have noticed something strange… most of the spambots seems to come from a local IP:

So I’m not sure if I have something wrong in my installation

Like, does this 172.16.0… setting is correct?

אתה משתמש ב-reverse proxy (משהו כמו nginx-proxy, אולי).
אתה צריך להוסיף משהו כזה ל-app.yml שלך

after_bundle_exec:
  - replace:
    filename: /etc/nginx/conf.d/discourse.conf
    from: "types {"
    to: |
      set_real_ip_from 172.16.0.0/12;
      set_real_ip_from 10.0.0.0/8;
      real_ip_recursive on;
      real_ip_header X-Forwarded-For;
      types {
4 לייקים

כפי שניתן לראות בצילום המסך הראשון, נראה שרק חלק מהם (נראה שמגיעים רק מבוטי ספאם)

נראה שאני לא משתמש ב-reverse proxy, דיסקרוס מוגש רק מתוך מופע של דוקר.

Sorry. Once I saw the 172.17.x.x addresses I assumed that you had a reverse proxy.

So this is a standard install?

If you’ve got a single host and no load balancer/reverse proxy, then I don’t know how anyone would have such an IP address. Maybe something else is somehow forwarding traffic? Those are private addresses, so it would appear that they are coming from your local network. That suggests that the spam bot is living on your network. (Guide to Private IP Address Classes and Ranges - Ipstack)

If you don’t have legitimate users (e.g., people on your LAN) accessing Discourse from that IP range, you’re safe to block it. I’d contact someone who runs your network and let them know that these attacks are coming from those internal addresses..

2 לייקים

זוהי כתובת IP של Docker, נכון?

לייק 1

That’s where I’ve seen it, but I think there are other uses for that range.

Or maybe the spam bot is a docker container on that machine. :person_shrugging:

2 לייקים

ובכן, אני לא יודע כלום ועבורי עולם ה-docker הוא תעלומה אחת גדולה, אבל חשבתי האם אפשר להשיג IP של קונטיינר דרך SSH או משהו?

Yes, I did it many years ago but I recall to be this one. Basically: a dedicated small host machine on vultr (like those dropplets on DO) for only this purpose, installed on docker, the rest of the host/vps is not used for anything else.

Yeah thats what im thinking, some wrong configuration or, since seems like happening from spambots, something strange happening around

not other dockers on that machine

האם לא עדכנת את מערכת ההפעלה שלך במשך כל השנים האלה? האם המחשב המארח נפרץ? כתובות ה-IP האלה נראות כאילו הן מגיעות מאותו מחשב.

I plan to do a reinstall in 2-3 months

it doesn’t looks like but, this can be hard to know, on the other side the spambots are not massive (but it was massive a few days ago, for some reason I got massive spam 2 hours after changing the confirmation email url link from “authorize_email” to “confirm-new-email” which seemed to be an old template contents, but in the restored backup now I still have the old way in order to avoid another attack)

The strange thing is that this email template seems to be duplicated in my settings, so I created another post topic for this issue:

האם הצלחת להבין מספיק כדי שתוכל לפתור את הבעיה שלך? האם נוכל לסגור את הנושא הזה?

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

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

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

לייק 1