Ask me anything.

I also develop Tesseract UI for Lemmy/Sublinks

  • 1 Post
  • 12 Comments
Joined 1 year ago
cake
Cake day: March 17th, 2024

help-circle




  • That’s a consideration, yeah, but they’d have to all be hitting lemmy.zip (your instance) and all from the same /32 IPv4 address.

    (AFAIK) CG-NAT still uses port address translation so there’s an upper limit to the number of users behind one IP address. They also are distributed geographically. So everyone would need to be in the same area on the same instance to really have that be an issue.

    The more likely scenario would be multiple people in the same IPv4 household using the same instance. But 20 comments per minute, divided by two people in the house would still be 10 comments per minute. That’s still probably more than they could reasonably do.

    Edit: You mentioned T-Mobile internet. T-Mobile is pretty much all IPv6 with IPv4 connectivity via CG-NAT. lemmy.zip is also reachable over IPv6, so in that situation,it would try IPv6 first and CG-NAT likely wouldn’t even come into play.


  • https://nginx.org/en/docs/http/ngx_http_proxy_module.html

    $proxy_add_x_forwarded_for is a built-in variable that either adds to the existing X-Forwarded-For header, if present, or adds the XFF header with the value of the built-in $remote_ip variable.

    The former case would be when Nginx is behind another reverse proxy, and the latter case when Nginx is exposed directly to the client.

    Assuming this Nginx is exposed directly to the clients, maybe try changing the bottom section like this to use the $remote_addr value for the XFF header. The commented one is just to make rolling back easier. Nginx will need to be reloaded after making the change, naturally.

         # Add IP forwarding headers
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header Host $host;
          # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header X-Forwarded-For $remote_addr;
    




  • So, a ‘Comments’ Rate limit: 10, Per second: 60, means a maximum of 10 comments per minute, correct?

    Correct, per client IP.

    Maybe the reason you see 99999999 is due to troubleshooting

    Could be. I try not to speculate on “why” when I don’t have access to the answer lol.

    I don’t recall any of them being from mander (unless they were dealt with before I started testing?), but thanks for taking preventative measures :)

    I don’t know what ‘Antiyanks’ is

    It’s the codename for a particular long-term troll and is based off of their original username pattern (which they still use sometimes). I have reason to believe it’s also the same troll that used to spam the racist stuff in Science Memes.

    These are most of today’s batch (minus the JON333 which was just a garden-variety spammer that made it into the last screenshot).




  • Lemmy’s API doesn’t have a direct way to do that, unfortunately.

    Tesseract (web-based lemmy app) used to have that before I took it out. After the ranking metrics were removed from the API, it was hard to sort them other than by new/old or by score. When you have a mix of active and inactive communities, it didn’t work great without the ranking metrics being there.

    You can still group communities, but only for organizing them or (in the dev branch/next version) applying filter policies to communities in that group.

    I may revisit the idea if I can figure out a better way to generate/sort the custom feeds.