Add FIXME regarding address prefixLength for Hetzner

Fixes #13
This commit is contained in:
Francesco Mazzoli 2021-10-06 13:41:32 +02:00 committed by GitHub
parent cb09b52de8
commit 604327e7ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -244,6 +244,12 @@ cat > /mnt/etc/nixos/configuration.nix <<EOF
networking.interfaces."$NIXOS_INTERFACE".ipv4.addresses = [ networking.interfaces."$NIXOS_INTERFACE".ipv4.addresses = [
{ {
address = "$IP_V4"; address = "$IP_V4";
# FIXME: The prefix length is commonly, but not always, 24.
# You should check what the prefix length is for your server
# by inspecting the netmask in the "IPs" tab of the Hetzner UI.
# For example, a netmask of 255.255.255.0 means prefix length 24
# (24 leading 1s), and 255.255.255.192 means prefix length 26
# (26 leading 1s).
prefixLength = 24; prefixLength = 24;
} }
]; ];