Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi gw support. #35

Open
wants to merge 2 commits into
base: npm
Choose a base branch
from
Open

Add multi gw support. #35

wants to merge 2 commits into from

Conversation

PhoenixHe-NV
Copy link

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
"

@ashi009
Copy link
Owner

ashi009 commented May 17, 2016

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

@@ -23,6 +23,9 @@ var kRegionalDelegationFiles = [{
}, {
name: 'lacnic',
url: 'ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest'
}, {
name: 'afrinic',
url: 'ftp://ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest'
Copy link
Owner

@ashi009 ashi009 May 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a separate PR for this change? As well as the delegation.json?

@PhoenixHe-NV
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants