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/