Openvpn instead
This commit is contained in:
parent
bf16d0a22b
commit
374e44e5ad
3 changed files with 16 additions and 9 deletions
BIN
keys/scribe
Normal file
BIN
keys/scribe
Normal file
Binary file not shown.
|
|
@ -15,5 +15,6 @@ in
|
|||
"wg-ren.priv".publicKeys = macbook++master++ren;
|
||||
"ren.priv".publicKeys = master ++ ren;
|
||||
"wg-scribe".publicKeys = master ++ ren ++ macbook;
|
||||
"scribe".publicKeys = master ++ ren ++ macbook;
|
||||
"smbshare".publicKeys = master ++ macbook ++ ren ++ selene;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
mediaGroup = "media";
|
||||
in
|
||||
|
|
@ -15,12 +15,18 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
age.secrets.wg-scribe = {
|
||||
file = ../../../keys/wg-scribe;
|
||||
path = "/etc/wireguard/wg-scribe.conf";
|
||||
age.secrets.vpn = {
|
||||
file = ../../../keys/scribe;
|
||||
owner = "ren";
|
||||
};
|
||||
|
||||
networking.firewall.trustedInterfaces = [ "wg-selene" "wg-scribe" ];
|
||||
services.openvpn.servers = {
|
||||
officeVPN = {
|
||||
config = ''config ${config.age.secrets.vpn.path} '';
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.trustedInterfaces = [ "wg-selene" ];
|
||||
networking.firewall.allowedUDPPorts = [ 23379 ];
|
||||
networking.firewall.allowedTCPPorts = [ 23379 ];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue