This repository has no description
0

Configure Feed

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

superconfig / configs / ssh-redirect.nix
726 B 31 lines
1{ 2 krebs.iptables = { 3 enable = true; 4 tables = { 5 nat.PREROUTING.rules = [ 6 { 7 predicate = "-i retiolum -p tcp -m tcp --dport 22"; 8 target = "ACCEPT"; 9 } 10 { 11 predicate = "-i wiregrill -p tcp -m tcp --dport 22"; 12 target = "ACCEPT"; 13 } 14 { 15 predicate = "-p tcp -m tcp --dport 22"; 16 target = "REDIRECT --to-ports 0"; 17 } 18 { 19 predicate = "-p tcp -m tcp --dport 45621"; 20 target = "REDIRECT --to-ports 22"; 21 } 22 ]; 23 nat.OUTPUT.rules = [ 24 { 25 predicate = "-o lo -p tcp -m tcp --dport 45621"; 26 target = "REDIRECT --to-ports 22"; 27 } 28 ]; 29 }; 30 }; 31}