Add floating IP address
This commit is contained in:
parent
f982861233
commit
48ab2b7cab
2 changed files with 20 additions and 5 deletions
19
nix/hosts/hetznix/networking.nix
Normal file
19
nix/hosts/hetznix/networking.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
networking = {
|
||||
firewall.allowedTCPPorts = [
|
||||
80
|
||||
443
|
||||
];
|
||||
|
||||
interfaces.enp1s0 = {
|
||||
useDHCP = true;
|
||||
|
||||
ipv4.addresses = [
|
||||
{
|
||||
address = "116.203.11.255";
|
||||
prefixLength = 32;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue