mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-11-22 10:34:57 +00:00
Update iptables.sh
This commit is contained in:
parent
671e6d8000
commit
a0d41ecb8f
@ -18,7 +18,7 @@ echo "[info] WebUI port defined as ${WEBUI_PORT}" | ts '%Y-%m-%d %H:%M:%.S'
|
||||
|
||||
DEBUG=false
|
||||
|
||||
echo "[info] Adding ${LAN_NETWORK} as route via docker eth0"
|
||||
echo "[info] Adding ${LAN_NETWORK} as route via docker eth0" | ts '%Y-%m-%d %H:%M:%.S'
|
||||
ip route add "${LAN_NETWORK}" via "${DEFAULT_GATEWAY}" dev eth0
|
||||
|
||||
# split comma seperated string into list from LAN_NETWORKS env variable
|
||||
@ -71,7 +71,7 @@ if [[ $iptable_mangle_exit_code == 0 ]]; then
|
||||
# setup route for deluge webui using set-mark to route traffic for port 8080 to eth0
|
||||
echo "8080 webui" >> /etc/iproute2/rt_tables
|
||||
ip rule add fwmark 1 table webui
|
||||
ip route add default via $DEFAULT_GATEWAY table webui
|
||||
ip route add default via ${DEFAULT_GATEWAY} table webui
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user