From aa4682f776e5801c7faa467c51a7ce96b526ef30 Mon Sep 17 00:00:00 2001 From: MarkusMcNugen Date: Thu, 26 Apr 2018 22:44:27 -0400 Subject: [PATCH] Update iptables.sh --- qbittorrent/iptables.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qbittorrent/iptables.sh b/qbittorrent/iptables.sh index 64e730f..096962f 100644 --- a/qbittorrent/iptables.sh +++ b/qbittorrent/iptables.sh @@ -96,11 +96,11 @@ iptables -A INPUT -i eth0 -p $VPN_PROTOCOL --sport $VPN_PORT -j ACCEPT # accept input to qbittorrent webui port if [ -z "${WEBUI_PORT}" ]; then - iptables -A INPUT -i ${LAN_NETWORK} -p tcp --dport 8080 -j ACCEPT - iptables -A INPUT -i ${LAN_NETWORK} -p tcp --sport 8080 -j ACCEPT + iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT + iptables -A INPUT -i eth0 -p tcp --sport 8080 -j ACCEPT else - iptables -A INPUT -i ${LAN_NETWORK} -p tcp --dport ${WEBUI_PORT} -j ACCEPT - iptables -A INPUT -i ${LAN_NETWORK} -p tcp --sport ${WEBUI_PORT} -j ACCEPT + iptables -A INPUT -i eth0 -p tcp --dport ${WEBUI_PORT} -j ACCEPT + iptables -A INPUT -i eth0 -p tcp --sport ${WEBUI_PORT} -j ACCEPT fi # accept input to qbittorrent daemon port - used for lan access