defiant: Generalize wireguard config
This commit is contained in:
parent
ee23a6eb75
commit
3ecca821d0
38
common/wireguard-peers.nix
Normal file
38
common/wireguard-peers.nix
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[
|
||||||
|
{ # Sulu
|
||||||
|
publicKey = "j6YVekgGS4nhL5zUiOTeK2BVQkYGlTQaiUpwcqQyfRk=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.3/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ # Worf
|
||||||
|
publicKey = "kW8SyzCh2tw8GzZV6bPn+IQVNUoUhseNfEm3rHnR1So=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.4/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ # Phone
|
||||||
|
publicKey = "axFXtcTYtW6m1FT9Czn9DRvG+b05D7j+0yRMjn/FJEk=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.5/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ # Riker
|
||||||
|
publicKey = "r715vpgH1H0zvN+Z5wcNKcOo5e6UM3fBfh9BZwTBjmA=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.6/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ # fa-t14-2025
|
||||||
|
publicKey = "UPpUVWQqOKT65MFym1sFDTstNmuynDYE4LOOtbWqEng=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.7/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{ # Turtle
|
||||||
|
publicKey = "mDzAtRPv+O5TDHa9DGodF/KKuFXRBYwSqfPyeWfdfRI=";
|
||||||
|
allowedIPs = [
|
||||||
|
"10.100.0.8/32"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
]
|
@ -32,37 +32,7 @@ in {
|
|||||||
];
|
];
|
||||||
endpoint = "site3.feal.no:51902";
|
endpoint = "site3.feal.no:51902";
|
||||||
}
|
}
|
||||||
{ # Worf
|
] ++ (import ../../../common/wireguard-peers.nix);
|
||||||
publicKey = "kW8SyzCh2tw8GzZV6bPn+IQVNUoUhseNfEm3rHnR1So=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.4/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Phone
|
|
||||||
publicKey = "axFXtcTYtW6m1FT9Czn9DRvG+b05D7j+0yRMjn/FJEk=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.5/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Riker
|
|
||||||
publicKey = "r715vpgH1H0zvN+Z5wcNKcOo5e6UM3fBfh9BZwTBjmA=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.6/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Work-laptop
|
|
||||||
publicKey = "px4YstB16lFjgdLQkH55wz8gQRupX/LTxg8dNFijDTA=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.7/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Turtle
|
|
||||||
publicKey = "mDzAtRPv+O5TDHa9DGodF/KKuFXRBYwSqfPyeWfdfRI=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.8/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -32,43 +32,7 @@ in {
|
|||||||
];
|
];
|
||||||
endpoint = "site2.feal.no:51902";
|
endpoint = "site2.feal.no:51902";
|
||||||
}
|
}
|
||||||
{ # Sulu
|
] ++ (import ../../../common/wireguard-peers.nix);
|
||||||
publicKey = "j6YVekgGS4nhL5zUiOTeK2BVQkYGlTQaiUpwcqQyfRk=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.3/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Worf
|
|
||||||
publicKey = "kW8SyzCh2tw8GzZV6bPn+IQVNUoUhseNfEm3rHnR1So=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.4/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Phone
|
|
||||||
publicKey = "axFXtcTYtW6m1FT9Czn9DRvG+b05D7j+0yRMjn/FJEk=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.5/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Riker
|
|
||||||
publicKey = "r715vpgH1H0zvN+Z5wcNKcOo5e6UM3fBfh9BZwTBjmA=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.6/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Work-laptop
|
|
||||||
publicKey = "px4YstB16lFjgdLQkH55wz8gQRupX/LTxg8dNFijDTA=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.7/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{ # Turtle
|
|
||||||
publicKey = "mDzAtRPv+O5TDHa9DGodF/KKuFXRBYwSqfPyeWfdfRI=";
|
|
||||||
allowedIPs = [
|
|
||||||
"10.100.0.8/32"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user