!RROtHmAaQIkiJzJZZE:nixos.org

NixOS Infrastructure

384 Members
Next Infra call: 2024-07-11, 18:00 CEST (UTC+2) | Infra operational issues backlog: https://github.com/orgs/NixOS/projects/52 | See #infra-alerts:nixos.org for real time alerts from Prometheus.118 Servers

Load older messages


SenderMessageTime
4 Aug 2025
@hexa:lossy.networkhexa700+ source addresses hammering out over 2.7million requests18:48:01
@hexa:lossy.networkhexaover 600k 429 responses18:48:06
@hexa:lossy.networkhexasource seems to be tor, but there is an email address in the user-agent18:48:16
@emma:rory.gay@emma:rory.gaypersonally i'd just throw up a few temporary iptables rules18:52:28
@hexa:lossy.networkhexayeah, I'm temporarily blocking tor exits18:53:12
@hexa:lossy.networkhexathe requests stopped a minute after I sent the mail18:57:02
@hexa:lossy.networkhexaalso boo, we're still using iptables18:57:17
5 Aug 2025
@emma:rory.gay@emma:rory.gayor youre using the nftables wrapper lol02:59:30
@hexa:lossy.networkhexathe nixos default 🤷03:00:29
@hexa:lossy.networkhexaquite a bit of technical debt in there03:00:51
@emma:rory.gay@emma:rory.gayyeah, thats the nftables wraper03:02:10
@emma:rory.gay@emma:rory.gay iptables v1.8.11 (nf_tables) 03:02:18
@emma:rory.gay@emma:rory.gayglad that still exists because i have no clue how to manage nftables03:02:46
@hexa:lossy.networkhexa
  systemd.services.nft-update-tor-exits = {
    wantedBy = [ "nftables.service" ];
    after = [ "nftables.service" ];
    startAt = "hourly";
    script = ''
      curl -sSL "https://check.torproject.org/cgi-bin/TorBulkExitList.py?exit" | sed '/^#/d' | while read IP; do
        nft add element inet filter torexits { $IP } 
      done
    '';
    path = with pkgs; [
      curl
      nftables
    ];
  };
03:10:29
@hexa:lossy.networkhexa
        set torexits {
          type ipv4_addr;
          flags dynamic, timeout;
          timeout 6h;
        }
03:11:00
@hexa:lossy.networkhexabasically you can create a datatype, e.g. a set03:11:06
@hexa:lossy.networkhexaand add to it, and have entries timeout automatically03:11:14
@hexa:lossy.networkhexaand then match on that set03:11:31
@hexa:lossy.networkhexa
            ip saddr @torexits counter drop
03:11:38
@sinan:sinanmohd.comsinan changed their profile picture.03:58:54
@sinan:sinanmohd.comsinan 03:58:56
@arianvp:matrix.orgArianI love nftables so much07:00:42
@arianvp:matrix.orgArianSystemd also creates a set for each cgroup automatically which is nice07:01:01
@janne:hess.oooJanne
In reply to @arianvp:matrix.org
Systemd also creates a set for each cgroup automatically which is nice
With what in it? 😳
07:54:47
@isabel:isabelroses.comisabel changed their profile picture.09:49:48
@arianvp:matrix.orgArianThe cgroup id19:38:42
@arianvp:matrix.orgArianBut means you can refer to cgroups by name in nft rules19:39:16
@arianvp:matrix.orgArian(as opposed to having to use the unstable cgroup id)19:39:27
6 Aug 2025
@janne:hess.oooJanne
In reply to @arianvp:matrix.org
The cgroup id
Do I need to enable something for this to work? Or do I have to use the latest version? Because I don't see anything like this in my ruleset
09:05:56
@arianvp:matrix.orgArianhttps://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html#NFTSet=family:table:set18:19:19

Show newer messages


Back to Room ListRoom Version: 6