fix: seems like we need to keep the two network addresses for the skynet server
This commit is contained in:
parent
5acbd12960
commit
7d7f402b6d
1 changed files with 29 additions and 6 deletions
|
@ -15,6 +15,7 @@ let
|
||||||
name = "skynet";
|
name = "skynet";
|
||||||
# DMZ that ITD provided
|
# DMZ that ITD provided
|
||||||
ip_pub = "193.1.96.165";
|
ip_pub = "193.1.96.165";
|
||||||
|
ip_int = "193.1.99.79";
|
||||||
hostname = "${name}.skynet.ie";
|
hostname = "${name}.skynet.ie";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
@ -55,12 +56,34 @@ in {
|
||||||
# needed to use the dmz first
|
# needed to use the dmz first
|
||||||
defaultGateway = lib.mkForce "193.1.96.161";
|
defaultGateway = lib.mkForce "193.1.96.161";
|
||||||
|
|
||||||
interfaces.eth1.ipv4.addresses = [
|
|
||||||
{
|
interfaces = {
|
||||||
address = ip_pub;
|
# need it for dns validation for letsencrypt
|
||||||
prefixLength = 28;
|
eth0.ipv4 = {
|
||||||
}
|
addresses = [
|
||||||
];
|
{
|
||||||
|
address = ip_int;
|
||||||
|
prefixLength = 26;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
address = "193.1.99.64";
|
||||||
|
prefixLength = 26;
|
||||||
|
via = "193.1.99.65";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# primary ip for logging in
|
||||||
|
eth1.ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = ip_pub;
|
||||||
|
prefixLength = 28;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.skynet = {
|
# services.skynet = {
|
||||||
|
|
Loading…
Reference in a new issue