Proxy server on OpenVPN Server

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
jude_aj
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 08, 2018 2:33 pm

Proxy server on OpenVPN Server

Post by jude_aj » Sat Sep 08, 2018 2:38 pm

I have a windows Server machine running OpenVpn Server and Http-proxy locally on two different ports. I am able to establish connection with OpenVPN server from my mobile and laptops. The internet traffic that I get is via the VPN server.

The proxy Server works as a filtering proxy which blocks certains sites based on policies. The request i make from my clients go to the VPN Server but the VPNServer does not forward it to my proxy.

Currently: Client -> OpenVPN - Internert

What I would like to achieve is: Clinet->OpenVPN->proxy->Internet

The OpenVpnServer GUI does give me an option to set proxy, but does not make any difference. It always by-passes the proxy. I also tried setting the windows proxy settings from controlpanel->internet option->Connection tab. All local browsing on the windows server goes through the proxy, its just that the OpenVPn Server traffic does not.

Did i probably overlook something? Here is my Server.config file

Code: Select all

port 8123

proto tcp

dev tun

ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\server.crt"
key "C:\\Program Files\\OpenVPN\\config\\server.key"

dh "C:\\Program Files\\OpenVPN\\config\\dh2048.pem"

server 10.8.0.0 255.255.255.0

ifconfig-pool-persist ipp.txt

push "redirect-gateway def1"

push "dhcp-option DNS 8.8.4.4"

keepalive 10 120

tls-auth ta.key 0 # This file is secret

cipher AES-256-CBC

persist-key
persist-tun

status openvpn-status.log

verb 3

jude_aj
OpenVpn Newbie
Posts: 4
Joined: Sat Sep 08, 2018 2:33 pm

Re: Proxy server on OpenVPN Server

Post by jude_aj » Tue Sep 11, 2018 7:16 am

Some progress. I upgraded my openvpn server to 2.4.6-I602 . Now when I set the proxy setting in the openVPN-GUI setting. I get following error :

Code: Select all

Tue Sep 11 06:57:27 2018 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Sep 11 06:57:27 2018 Windows version 6.2 (Windows 8 or greater) 64bit
Tue Sep 11 06:57:27 2018 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Tue Sep 11 06:57:27 2018 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Tue Sep 11 06:57:27 2018 Need hold release from management interface, waiting...
Tue Sep 11 06:57:28 2018 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'state on'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'log all on'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'echo all on'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'bytecount 5'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'hold off'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'hold release'
Tue Sep 11 06:57:28 2018 MANAGEMENT: CMD 'proxy HTTP 127.0.0.1 8888'
Tue Sep 11 06:57:28 2018 Previous command sent to management failed: ERROR: The proxy command is not supported by the current daemon mode
Can somebody please help me with this error?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Proxy server on OpenVPN Server

Post by TinCanTech » Tue Sep 11, 2018 12:04 pm


Post Reply