small changes to deluge 3
This commit is contained in:
@@ -44,6 +44,17 @@ in {
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "sobotka";
|
hostName = "sobotka";
|
||||||
domain = "cnst.dev";
|
domain = "cnst.dev";
|
||||||
|
firewall.extraCommands = ''
|
||||||
|
# Allow LAN access to Deluge Web UI
|
||||||
|
nft add rule inet filter input ip saddr 192.168.88.0/24 tcp dport 8112 accept
|
||||||
|
|
||||||
|
# Allow LAN access to Deluge daemon and torrent port
|
||||||
|
nft add rule inet filter input ip saddr 192.168.88.0/24 udp dport { 58846, 6881 } accept
|
||||||
|
|
||||||
|
# Block all other access to those ports
|
||||||
|
nft add rule inet filter input tcp dport 8112 drop
|
||||||
|
nft add rule inet filter input udp dport { 58846, 6881 } drop
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ in {
|
|||||||
autoStart = true;
|
autoStart = true;
|
||||||
dependsOn = ["gluetun"];
|
dependsOn = ["gluetun"];
|
||||||
ports = [
|
ports = [
|
||||||
"8112:8112"
|
"192.168.88.14:8112:8112"
|
||||||
"6881:6881"
|
"192.168.88.14:58846:58846"
|
||||||
];
|
];
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--network=container:gluetun"
|
"--network=container:gluetun"
|
||||||
|
|||||||
Reference in New Issue
Block a user