transmission-remote

This commit is contained in:
pvincent
2024-04-27 01:04:40 +04:00
parent 09b93bc80e
commit 2a998e54f5
2 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -114,6 +114,7 @@ function prepare_nftables() {
current_target="${TARGET:-not_defined_yet}" current_target="${TARGET:-not_defined_yet}"
desktop=false desktop=false
samba=false samba=false
transmission_daemon=false
if [[ $current_target == not_defined_yet ]]; then if [[ $current_target == not_defined_yet ]]; then
echo -n "generating new firewall table first time... " echo -n "generating new firewall table first time... "
else else
@@ -124,7 +125,10 @@ function prepare_nftables() {
if exist_command 'smbstatus'; then if exist_command 'smbstatus'; then
samba=true samba=true
fi fi
echo -n "generating new firewall table according to target=<${current_target}>, desktop=<$desktop>, samba=<$samba> ..." if exist_command 'transmission-daemon'; then
transmission_daemon=true
fi
echo -n "generating new firewall table according to target=<${current_target}>, desktop=<$desktop>, samba=<$samba>, transmission_daemon=<$transmission_daemon> ..."
else else
echo -n "generating new firewall table according to target=<${current_target}>..." echo -n "generating new firewall table according to target=<${current_target}>..."
fi fi
+6
View File
@@ -33,6 +33,12 @@ table inet firewall {
tcp dport netbios-ssn accept comment "Accept NetBIOS Session Service (smbd)" tcp dport netbios-ssn accept comment "Accept NetBIOS Session Service (smbd)"
tcp dport microsoft-ds accept comment "Accept Microsoft Directory Service (smbd)" tcp dport microsoft-ds accept comment "Accept Microsoft Directory Service (smbd)"
{%- endif %} {%- endif %}
{%- if env.transmission_daemon == 'true' %}
# allow TRANSMISSION-REMOTE
tcp dport 9091 accept comment "Accept Transmission Remote Service"
{%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
} }