Connecting to OpenVPN Server via Chrome/Firefox Browser

2

I'm planning on running a OpenVPN Service on my Raspberry Pi to encrypt only Browser Data from Chrome or Firefox and therefore I'll be setting up the RPi as a OpenVPN Server. I plan on following http://readwrite.com/2014/04/10/raspberry-pi-vpn-tutorial-server-secure-web-browsing as kind of a guide since I've close to no knowledge of linux or servers :)

After setting up the Server, I want to achieve, that I am able to connect to the OpenVPN Server without the Usage of a OpenVPN Client. I would like to create a private (just for my clients) Browser Extension (Chrome or Firefox) that has the key-files for authentification embedded.

The Problem is, that I have no idea how to create such a Extension and have no clue how to establish a OpenVPN Connection within the Extension to then encrypt every data transmitted within the browser.

Please note that I'm willing to use the VPN Connection for browser data only because all the other data shall use the the internet connection of the client.

Can anyone hand me a good guide or maybe even a solution for my problem? And do you think that the Openvpn Server setup like it is in the guide linked above can act as a server solution for my project?

Thank you really much for your time already!

Best regards cosi

cosi

Posted 2015-04-21T07:28:21.263

Reputation: 31

Question was closed 2017-03-18T11:04:21.657

have you found solution for that?I am looking exactly for that. – M U – 2016-11-28T14:18:24.203

Answers

-1

the proper way would be with NPAPI or a protocol handler. Check google documentation on handling this.

Note, if you need to handle native code with a browser extenion, embed a small HTTP server in a native app then call by the browser extension. Allows you to pretty much code whatever you need it to do.

Stack overflow has had many discussions about these things. connect-openvpn-in-chrome-extension

shoci

Posted 2015-04-21T07:28:21.263

Reputation: 1

-1

one solution could be;

  • set up comp1 to run your VPN service
  • set up comp2 to connect to the VPN service as a client
  • set up comp3 with a SOCKS5 proxy to comp2
  • set up comp3 browser to utilize proxy

you have achieved;

  • tunnel browser traffic via proxy --> vpn
  • all other traffic from comp3 will go out its native network connection/

Not very elegant, but functional and very safe (provided your ssh and vpn services are locked down correctly)

docjoe

Posted 2015-04-21T07:28:21.263

Reputation: 1

Chrome had a "--proxy-server" command line argument, but can it be used in Windows? – axus – 2017-03-16T18:36:50.533

i'm sure there is a way, Mozilla is what I use and have never had an issue. – docjoe – 2017-03-16T18:47:38.790

sorry i misread your question. web browser's like mozilla and chrome are operating system agnostic (with few exceptions); it should work regardless of OS. I have not tried it, so i dont know for sure. but Mozilla works :) – docjoe – 2017-03-16T18:50:57.960

There's a big list here: http://peter.sh/experiments/chromium-command-line-switches/#load-extension . I tried setting --proxy-server to localhost:8080 (and host-resolver-rules), but it didn't break my browsing, so I'm not sure it worked.

– axus – 2017-03-16T19:00:53.297

I've flagged this as not an answer, however the original question shouldn't be on the site in the first place. – djsmiley2k TMW – 2017-03-18T10:00:08.893