Add virtual ips for the gre tunnel
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
91260e8ec5
commit
451328c28b
|
@ -238,15 +238,15 @@ in
|
||||||
interfaces.intl0 = {
|
interfaces.intl0 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "5.78.16.0";
|
address = "10.47.3.2";
|
||||||
prefixLength = 32;
|
prefixLength = 30;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
ipv4.routes = [
|
ipv4.routes = [
|
||||||
{
|
{
|
||||||
address = "0.0.0.0";
|
address = "0.0.0.0";
|
||||||
prefixLength = 0;
|
prefixLength = 0;
|
||||||
via = "5.78.16.0";
|
via = "10.47.3.0";
|
||||||
options.table = "3";
|
options.table = "3";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -348,7 +348,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
ExecStart = "${pkgs.iproute2}/bin/ip rule add from 5.78.16.0/32 table 3";
|
ExecStart = "${pkgs.iproute2}/bin/ip rule add from 10.47.3.0/30 table 3";
|
||||||
ExecStop = "${pkgs.iproute2}/bin/ip rule del table 3";
|
ExecStop = "${pkgs.iproute2}/bin/ip rule del table 3";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1287,7 +1287,7 @@ in
|
||||||
masterConfig.smtptun = {
|
masterConfig.smtptun = {
|
||||||
type = "smtp";
|
type = "smtp";
|
||||||
command = "smtp";
|
command = "smtp";
|
||||||
args = "-o smtp_bind_address=10.42.0.2";
|
args = "-o smtp_bind_address=10.47.3.2";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue