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 for "other" vpn systems (enhancement request) #71

Open
nicklan opened this issue Jan 5, 2021 · 4 comments
Open

support for "other" vpn systems (enhancement request) #71

nicklan opened this issue Jan 5, 2021 · 4 comments

Comments

@nicklan
Copy link

nicklan commented Jan 5, 2021

It would be really cool if this script could reconfigure routing after it's been set up by a different vpn solution. I imagine this would involve inspecting the current routing table, and then deleting/creating routes as needed.

I'd be interested in looking into how to do this, but don't currently have enough knowledge about how all the routing etc works to know what the right way to do it would be. If you have some pointers for where I could get up to speed with that, that would be great.

Thanks!

@dlenski
Copy link
Owner

dlenski commented Jan 5, 2021

It would be really cool if this script could reconfigure routing after it's been set up by a different vpn solution. I imagine this would involve inspecting the current routing table, and then deleting/creating routes as needed.

I've thought about this too but… which different VPN solutions?

Other open-source VPNs like OpenVPN should generally be amenable to routing customization. (I even hacked together a horrible kludged version of vpn-slice to work with screen-scraped output from sstp-client+pppd a few years back.)

Closed-source VPNs will generally make this difficult-or-impossible. Many of them try to monitor for changes to the routing table and interfere with them. “Securiteh.”

I'd be interested in looking into how to do this, but don't currently have enough knowledge about how all the routing etc works to know what the right way to do it would be. If you have some pointers for where I could get up to speed with that, that would be great.

Basically everything I know about routing comes from reading the stuff described in the inspiration and credits section, writing vpn-slice (originally motivated by a need at my previous job), and contributing to OpenConnect.

@nicklan
Copy link
Author

nicklan commented Jan 6, 2021

Closed-source VPNs will generally make this difficult-or-impossible. Many of them try to monitor for changes to the routing table and interfere with them. “Securiteh.”

Yeah, that's the trickiest bit I guess. I suppose you could workaround most anything, but it would be very specific to each tool.

Anyway, thanks for the pointers, I'll go do some reading. Feel free to close this, or leave it open if you want a place to continue discussion around the topic.

@mschilli87

This comment was marked as spam.

@dlenski
Copy link
Owner

dlenski commented Apr 10, 2024

Personally I'd love to use vpn-slice with $X.

I've said it before and I'll say it again 😄

"I don't use $X myself, but well-designed pull requests to support $X would be welcome, and I can certainly help review and clean them up."

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