firewall: I think this is the correct network config for the firewall
This commit is contained in:
parent
5579de7e7c
commit
a5d6ca55ed
1 changed files with 8 additions and 19 deletions
|
@ -14,7 +14,7 @@ let
|
||||||
# name of the server, sets teh hostname and record for it
|
# name of the server, sets teh hostname and record for it
|
||||||
name = "agentjones";
|
name = "agentjones";
|
||||||
ip_pub = "193.1.99.72";
|
ip_pub = "193.1.99.72";
|
||||||
ip_priv = "172.20.20.1";
|
ip_priv = "193.1.99.125";
|
||||||
hostname = "${name}.skynet.ie";
|
hostname = "${name}.skynet.ie";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
@ -48,32 +48,21 @@ in {
|
||||||
# this has to be defined for any physical servers
|
# this has to be defined for any physical servers
|
||||||
# vms are defined by teh vm host
|
# vms are defined by teh vm host
|
||||||
networking.interfaces = {
|
networking.interfaces = {
|
||||||
# eno1 = {
|
eno1 = {
|
||||||
# ipv4.addresses = [
|
|
||||||
# {
|
|
||||||
# address = "193.1.99.72";
|
|
||||||
# prefixLength = 26;
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# ipv4.routes = [
|
|
||||||
# {
|
|
||||||
# address = "193.1.99.72";
|
|
||||||
# prefixLength = 26;
|
|
||||||
# via = "193.1.99.65";
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
eno2 = {
|
|
||||||
#useDHCP = false;
|
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "193.1.99.72";
|
address = "193.1.99.72";
|
||||||
prefixLength = 26;
|
prefixLength = 26;
|
||||||
}
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
eno2 = {
|
||||||
|
#useDHCP = false;
|
||||||
|
ipv4.addresses = [
|
||||||
{
|
{
|
||||||
# internal address
|
# internal address
|
||||||
address = "193.1.99.125";
|
address = "193.1.99.125";
|
||||||
prefixLength = 24;
|
prefixLength = 26;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue