Include carbon to OSPF network
This commit is contained in:
@@ -33,6 +33,16 @@
|
||||
|
||||
networking.wireguard.enable = true;
|
||||
networking.wireguard.interfaces = {
|
||||
wg-carbon = {
|
||||
ips = [ "fe80::138:1/64" "169.254.138.1/24" ];
|
||||
peers = [ {
|
||||
allowedIPs = [ "0.0.0.0/0" "::/0" ];
|
||||
publicKey = "ezemzjfG6OZ3rHcCvuh+N1VfaIgbijvFbvvRmhasu2E=";
|
||||
} ];
|
||||
listenPort = 50138;
|
||||
allowedIPsAsRoutes = false;
|
||||
privateKeyFile = "/var/src/secrets/wireguard/wg-carbon";
|
||||
};
|
||||
wg-nonat = {
|
||||
ips = [ "fe80::1337:1/64" "169.254.137.1/24" ];
|
||||
peers = [ {
|
||||
@@ -46,7 +56,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedUDPPorts = [ 51337 ];
|
||||
networking.firewall.allowedUDPPorts = [ 50138 51337 ];
|
||||
|
||||
services.bird2.enable = true;
|
||||
services.bird2.config = ''
|
||||
@@ -94,6 +104,10 @@
|
||||
export all;
|
||||
};
|
||||
area 0 {
|
||||
interface "wg-carbon" {
|
||||
cost 80;
|
||||
type pointopoint;
|
||||
};
|
||||
interface "wg-nonat" {
|
||||
cost 80;
|
||||
type pointopoint;
|
||||
@@ -108,6 +122,10 @@
|
||||
export all;
|
||||
};
|
||||
area 0 {
|
||||
interface "wg-carbon" {
|
||||
cost 80;
|
||||
type pointopoint;
|
||||
};
|
||||
interface "wg-nonat" {
|
||||
cost 80;
|
||||
type pointopoint;
|
||||
|
Reference in New Issue
Block a user