ma gum.r: enable ipv6 again

This commit is contained in:
makefu 2023-03-22 23:57:07 +01:00
parent 48c3746cf0
commit 1d1eb043d1
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 11 additions and 9 deletions

View File

@ -103,6 +103,7 @@ in {
# <stockholm/makefu/2configs/sabnzbd.nix> # <stockholm/makefu/2configs/sabnzbd.nix>
# <stockholm/makefu/2configs/mail/mail.euer.nix> # <stockholm/makefu/2configs/mail/mail.euer.nix>
{ krebs.exim.enable = mkDefault true; } { krebs.exim.enable = mkDefault true; }
<stockholm/makefu/2configs/nix-community/mediawiki-matrix-bot.nix>
# sharing # sharing
<stockholm/makefu/2configs/share/gum.nix> # samba sahre <stockholm/makefu/2configs/share/gum.nix> # samba sahre
@ -125,7 +126,7 @@ in {
<stockholm/makefu/2configs/backup/server.nix> <stockholm/makefu/2configs/backup/server.nix>
<stockholm/makefu/2configs/backup/state.nix> <stockholm/makefu/2configs/backup/state.nix>
<stockholm/makefu/2configs/wireguard/server.nix> <stockholm/makefu/2configs/wireguard/server.nix>
# <stockholm/makefu/2configs/wireguard/wiregrill.nix> <stockholm/makefu/2configs/wireguard/wiregrill.nix>
{ # recent changes mediawiki bot { # recent changes mediawiki bot
networking.firewall.allowedUDPPorts = [ 5005 5006 ]; networking.firewall.allowedUDPPorts = [ 5005 5006 ];
@ -173,7 +174,7 @@ in {
# <stockholm/makefu/2configs/nginx/iso.euer.nix> # <stockholm/makefu/2configs/nginx/iso.euer.nix>
# <stockholm/makefu/2configs/deployment/photostore.krebsco.de.nix> # <stockholm/makefu/2configs/deployment/photostore.krebsco.de.nix>
<stockholm/makefu/2configs/deployment/graphs.nix> # <stockholm/makefu/2configs/deployment/graphs.nix>
#<stockholm/makefu/2configs/deployment/owncloud.nix> #<stockholm/makefu/2configs/deployment/owncloud.nix>
# <stockholm/makefu/2configs/deployment/board.euer.krebsco.de.nix> # <stockholm/makefu/2configs/deployment/board.euer.krebsco.de.nix>
#<stockholm/makefu/2configs/deployment/feed.euer.krebsco.de> #<stockholm/makefu/2configs/deployment/feed.euer.krebsco.de>

View File

@ -3,7 +3,7 @@ let
external-mac = "96:00:01:24:33:f4"; external-mac = "96:00:01:24:33:f4";
external-gw = "172.31.1.1"; external-gw = "172.31.1.1";
external-ip = "142.132.189.140"; external-ip = "142.132.189.140";
external-ip6 = "2a01:4f8:1c17:5cdf::2/64"; external-ip6 = "2a01:4f8:1c17:5cdf::2";
external-gw6 = "fe80::1"; external-gw6 = "fe80::1";
external-netmask = 32; external-netmask = 32;
external-netmask6 = 64; external-netmask6 = 64;
@ -16,19 +16,20 @@ in
SUBSYSTEM=="net", ATTR{address}=="${external-mac}", NAME="${ext-if}" SUBSYSTEM=="net", ATTR{address}=="${external-mac}", NAME="${ext-if}"
''; '';
networking = { networking = {
enableIPv6 = true;
nat.enableIPv6 = true;
interfaces."${ext-if}" = { interfaces."${ext-if}" = {
useDHCP = true; useDHCP = true;
ipv6.addresses = [{
address = external-ip6;
prefixLength = external-netmask6;
}];
}; };
#ipv4.addresses = [{ #ipv4.addresses = [{
# address = external-ip; # address = external-ip;
# prefixLength = external-netmask; # prefixLength = external-netmask;
#}]; #}];
#ipv6.addresses = [{ defaultGateway6 = { address = external-gw6; interface = ext-if; };
# address = external-ip6;
# prefixLength = external-netmask6;
# }];
#};
#defaultGateway6 = { address = external-gw6; interface = ext-if; };
#defaultGateway = external-gw; #defaultGateway = external-gw;
nameservers = [ "1.1.1.1" ]; nameservers = [ "1.1.1.1" ];
}; };