tinc: fix last issues with insecure net on porani

This commit is contained in:
Ingolf Wagner 2020-02-03 19:08:43 +13:00
parent cc06d5bd47
commit d6efeb5097
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 14 additions and 5 deletions

View file

@ -1,4 +1,7 @@
{ config, pkgs, lib, ... }: {
networking.firewall.interfaces."tinc.insecure".allowedTCPPorts = [ 8384 ];
custom.samba-share = {
enable = true;
folders = {
@ -10,6 +13,7 @@
};
test.services.syncthing = {
guiAddress = lib.mkForce "${config.networking.hostName}.insecure:8384";
enable = true;
openDefaultPorts = true;
declarative = {

View file

@ -1,11 +1,11 @@
{ config, lib, pkgs, ... }: {
module.cluster.services.tinc = {
"private" = {
enable = true;
openPort = true;
connectTo = [ "sputnik" ];
};
#"private" = {
# enable = true;
# openPort = true;
# connectTo = [ "sputnik" ];
#};
"insecure" = {
enable = true;
openPort = true;

View file

@ -15,6 +15,11 @@ with lib; {
identitiesOnly = true;
user = "root";
};
"*.insecure" = {
identityFile = "~/.ssh/card_rsa.pub";
identitiesOnly = true;
user = "root";
};
"*.private" = {
identityFile = "~/.ssh/card_rsa.pub";
identitiesOnly = true;