nix-serve est disponible uniquement par tinc

This commit is contained in:
Yves Dubromelle
2017-01-21 23:57:51 +01:00
parent ae4c1edee0
commit f0627eb800

View File

@@ -19,9 +19,13 @@ mkIf cfg.nix-serve-server {
# Réseau # Réseau
networking.firewall = { networking.firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
5000 #5000 # ouvert sur tinc
]; ];
allowedUDPPorts = [ allowedUDPPorts = [
]; ];
extraCommands = ''
iptables -A INPUT -i tinc.grudunet -p tcp --dport 5000 -j ACCEPT
ip6tables -A INPUT -i tinc.grudunet -p tcp --dport 5000 -j ACCEPT
'';
}; };
} }