Update iptables.sh

This commit is contained in:
MarkusMcNugen 2018-02-02 23:11:15 -05:00 committed by GitHub
parent 818d894fe9
commit 4690315f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ if [[ $iptable_mangle_exit_code == 0 ]]; then
echo "[info] iptable_mangle support detected, adding fwmark for tables" echo "[info] iptable_mangle support detected, adding fwmark for tables"
# setup route for deluge webui using set-mark to route traffic for port 8112 to eth0 # setup route for deluge webui using set-mark to route traffic for port 8112 to eth0
echo "8112 webui" >> /etc/iproute2/rt_tables echo "8080 webui" >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table webui 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