static ipv6
This commit is contained in:
parent
dae80a3779
commit
44aa8ae7ec
2 changed files with 15 additions and 2 deletions
|
@ -19,10 +19,23 @@
|
|||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
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.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.
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
|
|
Loading…
Reference in a new issue