![NixOS中如何限制重复连接?](https://linux22.com/image/157772/NixOS%E4%B8%AD%E5%A6%82%E4%BD%95%E9%99%90%E5%88%B6%E9%87%8D%E5%A4%8D%E8%BF%9E%E6%8E%A5%EF%BC%9F.png)
是否可以在 NixOS 的 configuration.nix 中实现与以下 Puppet 等效的功能,而无需networking.firewall.extraCommands
?
firewall { '200 limit incoming SSH connections to 6 per minute':
dport => 22,
proto => tcp,
recent => update,
rseconds => 60,
rhitcount => 6,
rname => 'SSH',
rsource => true,
action => drop,
} -> firewall { '201 allow incoming SSH connections':
dport => 22,
proto => tcp,
recent => set,
rname => 'SSH',
rsource => true,
action => accept,
}