Question

question
How can I package a openvpn client with a chrome app? The app should be able to create a vpn-connection without the user having leave the chrome-app.

more background
I am implementing a chrome app where a user connects to his home server via the internet. Currently I rely on openvpn to establish the connection.
Since this is not very user-friendly I was trying to find a better solution. Is it possible to package the openvpn client with the chrome-app? Meaning, the user only needs to enter his credentials into my app and my chrome app hands it off to openvpn. I did not find any such resources. Are there any other (similar secure) options?

At one point I was considering a web-rtc p2p(e.g. via peerjs), but this would be rather awkward, since I would have to rewrite a good portion of my code.

Was it helpful?

Solution

Yes, it's possible. Look into Native Client for direct packaging of any native open-source project. You also might be interested in the chrome.sockets API (that link goes to chrome.socket, but the new chrome.sockets API is better).

To repackage a product, as opposed to a library that was designed to be included in other apps, is probably a lot of work. Good luck!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top