2

My college provides Internet through a proxy server, I need to login my username and password to access internet.

I have seen installation methods of openVPN but they don't talk about how to configure it over a proxy server.

How can I configure OpenVPN to use my proxy and login credentials to connect to VPN?

  • @Arronical: There is actually, but it's still in-development and thus off-topic here. – user364819 May 31 '16 at 11:39
  • Though the OP could possibly be mistaken about their version number. – user364819 May 31 '16 at 11:40
  • So, you're trying to setup an openVPN server on your university network, so you can remotely connect back into the network, while away? – user508889 May 31 '16 at 11:47
  • I'm trying to connect to blocked sites, like YouTube, and all social networking sites, I want OpenVPN because my proxy firewall is not letting me to make a SSH Tunnel to my EC2 instance at Amazon Web Services. @bc2946088 – Rishabh Agrahari May 31 '16 at 17:46
2

You can connect to remote server through proxy by openvpn command line options like this:

sudo openvpn --config /path/to/config-file.ovpn --http-proxy proxy_server_addr port

Or if proxy uses socks:

sudo openvpn --config /path/to/config-file.ovpn --socks-proxy proxy_server_addr port

If proxy server requiers authentication, the console prompt you to enter your username and password. otherwise you can create a file that contains username and password in each line and append filename to the command:

sudo openvpn --config /path/to/config-file.ovpn --http-proxy proxy_server_addr port authfile
| improve this answer | |
  • Getting Error : Options error: I'm trying to parse "/home/ags/vpn/vpnbook-us1-tcp80.ovpn" as an --option parameter but I don't see a leading '--' – Rishabh Agrahari May 31 '16 at 17:54
  • Got it working with sudo openvpn --config /path/to/config-file.ovpn --http-proxy proxy_server_addr port , but why --config? – Rishabh Agrahari May 31 '16 at 18:24
  • 1
    if you specify an additional option after the config file, you must write --config before config file. :) – Ghasem Pahlavan Jun 1 '16 at 8:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.