update
This commit is contained in:
@@ -71,30 +71,9 @@ in {
|
||||
user = "nixarr";
|
||||
group = "nixarr";
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
"rpc-bind-address" = "192.168.15.1"; # Bind RPC/WebUI to bridge address
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Define VPN network namespace
|
||||
vpnnamespaces.wg = {
|
||||
enable = true;
|
||||
wireguardConfigFile = "/data/.secret/wg.conf";
|
||||
accessibleFrom = [ "192.168.1.0/24" ];
|
||||
portMappings = [{
|
||||
from = 9091;
|
||||
to = 9091;
|
||||
}];
|
||||
openVPNPorts = [{
|
||||
port = 60729;
|
||||
protocol = "both";
|
||||
}];
|
||||
};
|
||||
|
||||
# Add systemd service to VPN network namespace.
|
||||
systemd.services.transmission.vpnconfinement = {
|
||||
enable = true;
|
||||
vpnnamespace = "wg";
|
||||
};
|
||||
# Transmission port
|
||||
networking.firewall.allowedTCPPorts = [ 9091 ];
|
||||
}
|
||||
|
||||
@@ -18,5 +18,4 @@
|
||||
# '';
|
||||
# };
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 9091 ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user