Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ziwork committed Aug 20, 2023
1 parent 78a5a6b commit 1e426da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 100-unblock-vpn-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ case ${id}-${change}-${connected}-${link}-${up} in
vpn_name=$(curl -s localhost:79/rci/show/interface/"$vpn"/description | tr -d \")

ip -4 route add table "$vpn_table" default via "$vpn_ip" dev "$vpn_type" 2>/dev/null
# ip -4 route show table main | grep -Ev ^default | while read -r ROUTE; do ip -4 route add table "$vpn_table" "$ROUTE" 2>/dev/null; done
# ip -4 route show table main | grep -Ev ^default | while read -r ROUTE; do ip -4 route add table "$vpn_table" "$ROUTE" 2>/dev/null; done
ip -4 route show table main | grep -Ev ^default | while read -r ROUTE; do ip -4 route add table "$vpn_table" $ROUTE 2>/dev/null; done
ip -4 rule add fwmark "$get_fwmark_id" lookup "$vpn_table" priority 1778 2>/dev/null
ip -4 route flush cache
Expand Down

0 comments on commit 1e426da

Please sign in to comment.