How do I connect to a VPN going through a proxy?

I am currently at a client and they are using a Proxy to connect the users to the internet. I want to VPN back into my company to retrieve some files.

I tried applications like Proxifier, but for some odd reason when I try and configure the Proxy server on it, it always fails to connect to it, but using the proxy directly through Firefox and IE works...

So, how can I do this, or is it not possible?

  • Sounds like you need to speak to the IT team at your client, and explain you need a connection from the other side of their proxy Nov 19, 2014 at 9:05
  • @RowlandShaw, yeah I think I'll need to. I thought it was something that I'm missing, but I understand what Slchk is saying though, which means that this approach cannot be done without removing the proxy part.
    – Morné
    Nov 19, 2014 at 9:09

3 Answers 3


I found myself in a very similar situation more than once. If you follow IANA port assignment rules, it is as slhck says: you cannot do it without asking the administrator to allow an outgoing connection to your VPN (e.g. port 1194 UDP is the default for OpenVPN).

However, I managed to solve that problem by breaking the rules and assigning TCP port number 443 (HTTPS) to my VPN server. This worked for me because the network that I connected from did not actually proxy TCP port 443: they simply forwarded TCP:443 packets transparently -- probably to avoid the hassle of configuring an HTTPS proxy. This post here discusses HTTPS proxies, which might prevent this solution from working.

Recently I also learned that OpenVPN supports proxies, as shown in this OpenVPN howto page. I haven't tested that, but it might work.

It all depends on how strict is network security at the place you are... In the end it might just be easier (and more ethical) to just ask your client's IT folks to help you.

Please notice that using TCP for a VPN is not advised, as it introduces an extra layer of TCP overhead, as discussed in this post.


It's not possible. Proxies (in companies) are basically meant to funnel all outgoing traffic through, for several reasons (policy enforcing, content caching, monitoring, etc.). Mostly, outgoing requests are only allowed via HTTP, HTTPS and maybe FTP, and even that, only on specific ports.

VPN on the other hand uses a tunneled connection, much like SSH (or SFTP, for that matter). These also use a different port than the typical ones you find for HTTP (80) and HTTPS (443).

It won't work for various reasons:

  • It's very likely that the company network you are in does not allow outgoing connections on any port other than predefined ones (i.e., 80, 443), or anything that is not requested via the proxy server
  • Protocols other than HTTP(S) or FTP may be forbidden
  • The proxy may just be a simple HTTP proxy, with no means of forwarding any other traffic (which is what a SOCKS proxy could do)

Your only option is to get an exception rule in the company firewall to allow an outgoing connection to your VPN endpoint, using a specific port.

  • The tool corkscrew allows SSH to work through HTTP/HTTPS proxies. See wiki.archlinux.org/index.php/… for usage details.
    – youR.Fate
    Jun 30, 2016 at 15:24
  • Why do you say it is impossible? Windscribe VPN app can connect to its servers through a proxy in windows. ArgoVPN in Android can do the same. May 2 at 16:38

Please specify which VPN software you are using.

Most VPNs with own client software (IPSec, PPTP, L2TP) cannot connect through proxy server. If you are using SSL-VPN, you can configure the browser to use the proxy.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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