Test from server

This commit is contained in:
albert 2023-12-02 22:36:39 +09:00
parent 1a33349f29
commit f7b7b731a5
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A
2 changed files with 28 additions and 3 deletions

View file

@ -42,6 +42,13 @@
"tailscaled-autoconnect.service"
];
};
services.tailscale.extraUpFlags = [
"--advertise-exit-node"
"--advertise-routes=10.2.0.0/24"
];
boot.kernel.sysctl = { "net.ipv4.ip_forward" = true; };
services.tailscale.authKeyFile = "/run/secrets/tailscale_keys/framework-server";
boot.initrd.services.udev.rules = ''
# This is used to change the default configuration of Realtek USB ethernet adapters
@ -58,6 +65,4 @@
LABEL="usb_realtek_net_end"
'';
services.tailscale.authKeyFile = "/run/secrets/tailscale_keys/framework-server";
}
}

View file

@ -3,6 +3,7 @@
"fs.inotify.max_user_watches" = 10485760;
"fs.inotify.max_user_instances" = 1024;
};
virtualisation.docker = {
enable = true;
enableOnBoot = true;
@ -13,4 +14,23 @@
};
environment.systemPackages = with pkgs; [ docker-compose ];
networking.firewall.allowedUDPPorts = [
3478 # Headscale DERP UDP
10000 # Jitsi
];
networking.firewall.allowedTCPPorts = [
80 # HTTP
443 # HTTPS
25 # Mail
465 # Mail
587 # Mail
143 # Mail
993 # Mail
4190 # Mail
42420 # Vintage Story
25565 # Minecraft
1443 # Headscale DERP
4443 # Jitsi
];
}