From 3eae257f59e9d0e7129fc51a98bbbb3bb3926e53 Mon Sep 17 00:00:00 2001 From: binhex Date: Thu, 8 Oct 2020 09:30:18 +0100 Subject: [PATCH] bug in iptables due to switch of default_gateway var --- run/root/iptable.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run/root/iptable.sh b/run/root/iptable.sh index 59db6de..3e79092 100644 --- a/run/root/iptable.sh +++ b/run/root/iptable.sh @@ -65,7 +65,8 @@ if [[ "${iptable_mangle_exit_code}" == 0 ]]; then # setup route for qbittorrent http using set-mark to route traffic for port WEBUI_PORT to lan echo "${WEBUI_PORT} qbittorrent_http" >> /etc/iproute2/rt_tables ip rule add fwmark 1 table qbittorrent_http - ip route add default via $DEFAULT_GATEWAY table qbittorrent_http + ip route add default via "${default_gateway}" table qbittorrent_http + fi