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

Support multiple routes #17

Open
fzakaria opened this issue Jul 24, 2019 · 2 comments
Open

Support multiple routes #17

fzakaria opened this issue Jul 24, 2019 · 2 comments

Comments

@fzakaria
Copy link

Hi!
I want to use vpn-slice for all non-internal subnets (i.e. https://serverfault.com/questions/304781/cidr-ranges-for-everything-except-rfc1918) beacuse we use the VPN as a public internet proxy.

The full list is quite long -- is there a way maybe to give the routes from a file instead of directly from the command line ?

If not, that would be a welcomed addition.

@dlenski
Copy link
Owner

dlenski commented Jul 25, 2019

Hi @fzakaria, this is a good idea:

The full list is quite long -- is there a way maybe to give the routes from a file instead of directly from the command line ?

Should be quite straightforward to add something like openconnect's own --config option, e.g. vpn-slice --config file_with_options.txt that causes it to pull in additional options from that file.

Want to take a crack at a PR?

@fzakaria
Copy link
Author

Yea, i will -- i looked at the code; looks reasonable.
OSS!

@YAMLcase
Copy link

YAMLcase commented Apr 2, 2020

Has this been implemented yet?

If not, this will do in a pinch:

create your file, one route per line:

10.20.30.0/24
10.50.60.0/25

then: <openconnect|other> "vpn-slice $(cat /path/to/routes-file | tr '\n' ' ')"

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

No branches or pull requests

3 participants