tinc: fix last issues with insecure net on porani
This commit is contained in:
parent
cc06d5bd47
commit
d6efeb5097
3 changed files with 14 additions and 5 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue