Compare commits
No commits in common. "b9981c707569610652dd8924c5f751cc051d6514" and "d202456d6bfd8ae11186b6bdb128b37133d3345f" have entirely different histories.
b9981c7075
...
d202456d6b
@ -13,7 +13,6 @@
|
||||
rpc-whitelist-enabled = false;
|
||||
peer-port = 51413;
|
||||
incomplete-dir = "/mnt/medias/incomplete";
|
||||
download-dir = "/mnt/medias/torrent";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -541,6 +541,24 @@ in
|
||||
security.pam.services.sshd.text = pkgs.lib.mkDefault( pkgs.lib.mkAfter "session optional ${pkgs.pam}/lib/security/pam_exec.so seteuid ${login_mail_alert}/bin/mail_alert.sh" );
|
||||
|
||||
networking = {
|
||||
wireguard.interfaces = {
|
||||
wg0 = {
|
||||
ips = [ "192.168.20.1/24" ];
|
||||
privateKeyFile = "/mnt/secrets/wireguard/wg0.privatekey";
|
||||
listenPort = 51820;
|
||||
allowedIPsAsRoutes = true;
|
||||
peers = [
|
||||
{
|
||||
allowedIPs = [ "192.168.20.2/32" ];
|
||||
publicKey = "b/SXiqo+GPdNOc54lyEVeUBc6B5AbVMKh+g5EZPGzlE=";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
nat.internalInterfaces = [ "wg0" ];
|
||||
nat.internalIPs = [ "192.168.20.0/24" ];
|
||||
|
||||
firewall.interfaces.eno2.allowedTCPPorts = [
|
||||
3260
|
||||
];
|
||||
@ -553,5 +571,9 @@ in
|
||||
firewall.allowedTCPPortRanges = [
|
||||
{ from = 64000; to = 65535; } # FTP
|
||||
];
|
||||
|
||||
firewall.allowedUDPPorts = [
|
||||
config.networking.wireguard.interfaces.wg0.listenPort
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -49,6 +49,7 @@
|
||||
inetutils
|
||||
rclone
|
||||
lftp
|
||||
wireguard-tools
|
||||
nfs-utils
|
||||
nmap
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user