This commit is contained in:
Schrottkatze 2023-02-26 21:47:04 +01:00
parent f1c3523374
commit 9adb086e45
3 changed files with 45 additions and 30 deletions

View file

@ -163,35 +163,35 @@
RuntimeDirectorySize=12G
'';
networking = {
#networking = {
#nameservers = [
#"192.168.8.205"
#];
wireguard = {
enable = true;
interfaces = {
wg-maxim-vpn = {
privateKey = "CLcq8sCnusXz0jFHz6ODAZBD2Sn2vb9a5BCfbQGrrXk=";
listenPort = 21124;
ips = [
"10.0.0.4/32"
];
peers = [
{
allowedIPs = [
"10.0.0.0/24"
"192.168.8.0/24"
#wireguard = {
#enable = true;
#interfaces = {
#wg-maxim-vpn = {
#privateKey = "CLcq8sCnusXz0jFHz6ODAZBD2Sn2vb9a5BCfbQGrrXk=";
#listenPort = 21124;
#ips = [
#"10.0.0.4/32"
#];
#peers = [
#{
#allowedIPs = [
#"10.0.0.0/24"
#"192.168.8.0/24"
#"0.0.0.0/0"
"::/0"
];
endpoint = "vpn.local.germannr4.com:51820";
persistentKeepalive = 25;
publicKey = "coP4Hh1smQvVI52ftZFyPfmzvsKZcT/hHa8zHMrlZwE=";
}
];
};
};
};
#"::/0"
#];
#endpoint = "vpn.local.germannr4.com:51820";
#persistentKeepalive = 25;
#publicKey = "coP4Hh1smQvVI52ftZFyPfmzvsKZcT/hHa8zHMrlZwE=";
#}
#];
#};
#};
#};
};
#fileSystems."/swap" = {