bestroutetb icon indicating copy to clipboard operation
bestroutetb copied to clipboard

Add multi gw support.

Open PhoenixHe-NV opened this issue 8 years ago • 2 comments

Test cli:

node ./cli.js -v -p custom \
    --rule-format $'r a %prefix/%length %gw table vpn\n' \
    --route.net="CN" \
    --gateway.net="via 172.27.0.1 dev eth0" \
    --route.vpn="US" \
    --gateway.vpn="via 172.27.0.2 dev eth1" \
    --route.jp="JP" \
    --gateway.jp="via 172.27.0.3 dev eth2" \
    -f -o a/vpn_route.sh --header \
"#!/bin/bash
PATH=/usr/sbin:$PATH
ip route flush table vpn

ip -b - <<FILE
" \
--footer \
"FILE
"

PhoenixHe-NV avatar May 14 '16 02:05 PhoenixHe-NV

Thanks for the contribution. I'll look into it this weekend.

ashi009 avatar May 17 '16 12:05 ashi009

Well... I think pull request #14 works better. You can close this one.

PhoenixHe-NV avatar May 25 '16 05:05 PhoenixHe-NV