Question

Is it possible to connect openVPN programmatically from the Chrome extension API? All I've found in Chrome extensions API docs are chrome.proxy and chrome.socket.

I belive it is possible to run external program using NPAPI and this extenral program will create nessesary openVPN connection.

UPD: It seems that OpenVPN have TCP/Socket management interface ( see http://openvpn.net/index.php/open-source/documentation/miscellaneous/79-management-interface.html ) So it is rather easy to connect it from Chrome extension programmatically.

Was it helpful?

Solution

@vcsjones is correct... the proper way would be with NPAPI or a protocol handler. However, there is another method.

In the past, when I have needed to execute native code with a browser extension, I embed a small HTTP server into a native application that can be called from the browser extension. This allows me to write whatever I need to, while the browser extension is nothing but a control for that native application. You could then easily write something to control OpenVPN.

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