Remove pbr leftover from bgp experiment
This commit is contained in:
parent
b6caebc4ef
commit
5f95721f3d
@ -70,20 +70,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
|
||||||
enable = true;
|
|
||||||
rules6 = [
|
|
||||||
{ rule = "from all to fd00:152:152::/48 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from fd00:152:152::/48 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to fd00:152:152::/48 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
rules4 = [
|
|
||||||
{ rule = "from all to 10.152.0.0/16 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from 10.152.0.0/16 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to 10.152.0.0/16 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
clerie.gre-tunnel = {
|
clerie.gre-tunnel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
@ -123,7 +109,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf6 {
|
protocol kernel kernel_ospf6 {
|
||||||
kernel table 1000;
|
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
export filter {
|
export filter {
|
||||||
@ -135,7 +120,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf4 {
|
protocol kernel kernel_ospf4 {
|
||||||
kernel table 1000;
|
|
||||||
ipv4 {
|
ipv4 {
|
||||||
table ospf4;
|
table ospf4;
|
||||||
export filter {
|
export filter {
|
||||||
|
@ -122,20 +122,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
|
||||||
enable = true;
|
|
||||||
rules6 = [
|
|
||||||
{ rule = "from all to fd00:152:152::/48 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from fd00:152:152::/48 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to fd00:152:152::/48 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
rules4 = [
|
|
||||||
{ rule = "from all to 10.152.0.0/16 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from 10.152.0.0/16 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to 10.152.0.0/16 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
clerie.gre-tunnel = {
|
clerie.gre-tunnel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ipv4 = {
|
ipv4 = {
|
||||||
@ -165,7 +151,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf6 {
|
protocol kernel kernel_ospf6 {
|
||||||
kernel table 1000;
|
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
export filter {
|
export filter {
|
||||||
@ -177,7 +162,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf4 {
|
protocol kernel kernel_ospf4 {
|
||||||
kernel table 1000;
|
|
||||||
ipv4 {
|
ipv4 {
|
||||||
table ospf4;
|
table ospf4;
|
||||||
export filter {
|
export filter {
|
||||||
|
@ -78,20 +78,6 @@
|
|||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 50128 51337 ];
|
networking.firewall.allowedUDPPorts = [ 50128 51337 ];
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
|
||||||
enable = true;
|
|
||||||
rules6 = [
|
|
||||||
{ rule = "from all to fd00:152:152::/48 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from fd00:152:152::/48 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to fd00:152:152::/48 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
rules4 = [
|
|
||||||
{ rule = "from all to 10.152.0.0/16 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from 10.152.0.0/16 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to 10.152.0.0/16 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.bird2.enable = true;
|
services.bird2.enable = true;
|
||||||
services.bird2.config = ''
|
services.bird2.config = ''
|
||||||
router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };
|
router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };
|
||||||
@ -120,7 +106,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf6 {
|
protocol kernel kernel_ospf6 {
|
||||||
kernel table 1000;
|
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
export filter {
|
export filter {
|
||||||
@ -132,7 +117,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf4 {
|
protocol kernel kernel_ospf4 {
|
||||||
kernel table 1000;
|
|
||||||
ipv4 {
|
ipv4 {
|
||||||
table ospf4;
|
table ospf4;
|
||||||
export filter {
|
export filter {
|
||||||
|
@ -66,20 +66,6 @@
|
|||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 50138 51337 ];
|
networking.firewall.allowedUDPPorts = [ 50138 51337 ];
|
||||||
|
|
||||||
petabyte.policyrouting = {
|
|
||||||
enable = true;
|
|
||||||
rules6 = [
|
|
||||||
{ rule = "from all to fd00:152:152::/48 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from fd00:152:152::/48 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to fd00:152:152::/48 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
rules4 = [
|
|
||||||
{ rule = "from all to 10.152.0.0/16 lookup 1000"; prio = 10000; } # OSPF
|
|
||||||
{ rule = "from 10.152.0.0/16 lookup 2000"; prio = 10000; } # BGP
|
|
||||||
{ rule = "from all to 10.152.0.0/16 unreachable"; prio = 20000; }
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.bird2.enable = true;
|
services.bird2.enable = true;
|
||||||
services.bird2.config = ''
|
services.bird2.config = ''
|
||||||
router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };
|
router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };
|
||||||
@ -98,7 +84,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf6 {
|
protocol kernel kernel_ospf6 {
|
||||||
kernel table 1000;
|
|
||||||
ipv6 {
|
ipv6 {
|
||||||
table ospf6;
|
table ospf6;
|
||||||
export filter {
|
export filter {
|
||||||
@ -110,7 +95,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
protocol kernel kernel_ospf4 {
|
protocol kernel kernel_ospf4 {
|
||||||
kernel table 1000;
|
|
||||||
ipv4 {
|
ipv4 {
|
||||||
table ospf4;
|
table ospf4;
|
||||||
export filter {
|
export filter {
|
||||||
|
Loading…
Reference in New Issue
Block a user