Use updated HotIO qbittorrent setup

This commit is contained in:
Colin Hebert
2024-02-03 15:15:51 +11:00
parent ddd0d6b458
commit a5c2b236da
4 changed files with 1 additions and 25 deletions

View File

@@ -1,8 +0,0 @@
#!/command/with-contenv bash
echo "Installing Git..."
apk add -u git
echo "Installing py-natpmp"
rm -r /py-natpmp || echo "py-natpmp clean"
git clone https://github.com/yimingliu/py-natpmp.git /py-natpmp

View File

@@ -1,16 +1,4 @@
#!/command/with-contenv bash
echo "Obtaining Wireguard Server IP..."
wgserver=$(grep Endpoint "${CONFIG_DIR}/wireguard/wg0.conf" | awk '{print $3}')
echo "IP: ${wgserver%:*}"
echo "Obtaining default gateway..."
gateway=$(ip -o -4 route show to default | awk '{print $3}')
echo "Gateway: ${gateway}"
echo "Adding route to Wireguard Server via Default Gateway"
ip route add ${wgserver%:*}/32 via ${gateway} dev eth0
echo "Allow DNS resolution locally"
iptables -A INPUT -i eth0 -p udp -m udp --sport 53 -j ACCEPT
iptables -A OUTPUT -o eth0 -p udp -m udp --dport 53 -j ACCEPT

View File

@@ -1,3 +0,0 @@
#!/command/with-contenv bash
listen_port=$(python3 /py-natpmp/natpmp/natpmp_client.py -g 10.2.0.1 0 0 | sed -E 's/.*?public port ([0-9]+).*?/\1/')
curl -F "json={\"listen_port\": ${listen_port}}" http://localhost:8080/api/v2/app/setPreferences