static ipv6

This commit is contained in:
Leon Vatthauer 2024-05-08 16:35:56 +02:00
parent dae80a3779
commit 44aa8ae7ec
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
2 changed files with 15 additions and 2 deletions

View file

@ -19,10 +19,23 @@
boot.loader.grub.device = "/dev/sda"; boot.loader.grub.device = "/dev/sda";
networking.hostName = "dafoe"; # Define your hostname. networking.hostName = "dafoe"; # Define your hostname.
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# open ports for servers
networking.firewall.allowedTCPPorts = [ 22 80 443 631 8096 8920 ]; networking.firewall.allowedTCPPorts = [ 22 80 443 631 8096 8920 ];
networking.firewall.allowedUDPPorts = [ 22 80 443 631 1900 7359 ]; networking.firewall.allowedUDPPorts = [ 22 80 443 631 1900 7359 ];
# static ipv6 (hetzner cant manage ipv6 via dhcp)
networking.interfaces = {
ens3.ipv6.addresses = [{
address = "2a01:4f8:1c1e:83ae::";
prefixLength = 64;
}];
};
networking.defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";

View file

@ -1,4 +1,4 @@
{ {
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
services.openssh.enable = true; services.openssh.enable = true;
} }