From 884ae1f8416fa793718a6c4a4faa99ac6a6cb04c Mon Sep 17 00:00:00 2001 From: Lucas Faber Date: Thu, 16 Jul 2026 10:42:11 +0200 Subject: [PATCH] rtorrent & jellyfin --- network/iptables_basic.sh | 6 ++++++ serverhost/rtorrentcomplete.sh | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 serverhost/rtorrentcomplete.sh diff --git a/network/iptables_basic.sh b/network/iptables_basic.sh index 4d1f9ea..746934c 100644 --- a/network/iptables_basic.sh +++ b/network/iptables_basic.sh @@ -64,6 +64,12 @@ elif [ "${HOST}" == "serverhost" ]; then echo Deluge Daemon iptables -A INPUT -p tcp --dport ${DELUGE_PORT} -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp --sport ${DELUGE_PORT} -m state --state ESTABLISHED -j ACCEPT + iptables -A INPUT -p tcp --dport 8096 -j ACCEPT + iptables -A INPUT -p udp --dport 8096 -j ACCEPT + iptables -A INPUT -p tcp --dport 4533 -j ACCEPT + iptables -A INPUT -p udp --dport 4533 -j ACCEPT + iptables -A INPUT -p tcp --dport 13378 -j ACCEPT + iptables -A INPUT -p udp --dport 13378 -j ACCEPT fi echo "Incoming SSH -P $SSHPORT" iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport $SSHPORT -j ACCEPT diff --git a/serverhost/rtorrentcomplete.sh b/serverhost/rtorrentcomplete.sh new file mode 100644 index 0000000..f400611 --- /dev/null +++ b/serverhost/rtorrentcomplete.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +TORRENT_PATH="$1" + +echo "$@" >> /home/lucas/.LOG/log_torrentlog.txt + +/home/lucas/mqqt_venv/bin/python /home/lucas/scripts/serverhost/torrent_mqtt.py "$*" + +cp $TORRENT_PATH /torrent/complete/