nixos-config/system/desktop/sshd.nix

7 lines
222 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, ... }: {
2019-10-24 02:20:38 +02:00
# make sure ssh is only available trough the tinc
networking.firewall.extraCommands = ''
iptables -t nat -A PREROUTING ! -i tinc.private -p tcp -m tcp --dport 22 -j REDIRECT --to-ports 0
'';
}