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

View file

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

View file

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