initial commit here we are
This commit is contained in:
commit
82916ad718
59 changed files with 2155 additions and 0 deletions
20
appserver/wg.nix
Normal file
20
appserver/wg.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
networking.wg-quick.interfaces = {
|
||||
wg0 = {
|
||||
address = [ "192.168.100.3/24" ]; # "fdc9:281f:04d7:9ee9::2/64"
|
||||
#dns = [ "192.168.100.1" "192.168.1.1" ]; # "fdc9:281f:04d7:9ee9::1"
|
||||
privateKeyFile = "/root/wireguard-keys/private";
|
||||
peers = [
|
||||
{
|
||||
publicKey = "";
|
||||
presharedKeyFile = "/root/wireguard-keys/preshared";
|
||||
allowedIPs = [ "192.168.100.1/24" ]; # "::/0"
|
||||
endpoint = "46.226.104.98:51820";
|
||||
persistentKeepalive = 25;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue