This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

configs.ssh-redirect: only reject 22 that wasn't redirected elsewhere

+3 -2
+3 -2
configs/ssh-redirect.nix
··· 13 13 } 14 14 # Runs before nixos-fw, which accepts 22 everywhere. Connections that 15 15 # came in on 45621 have been redirected to 22 already, so match the 16 - # port the client asked for. 16 + # port the client asked for. tcp dport 22 spares connections to 22 17 + # that got redirected elsewhere (the tangled knot on neoprism). 17 18 chain input { 18 19 type filter hook input priority filter - 1; policy accept; 19 - ct state new meta l4proto tcp ct original proto-dst 22 iifname != { "lo", "retiolum", "wiregrill" } reject with tcp reset 20 + ct state new tcp dport 22 ct original proto-dst 22 iifname != { "lo", "retiolum", "wiregrill" } reject with tcp reset 20 21 } 21 22 ''; 22 23 };