Page 1 of 1

OpenVPN AS + Squid Proxy (DigitalOcean)

Posted: Tue Sep 29, 2020 12:08 pm
by rodentskie
Hello,

I'm new in making configs in OpenVPN.

I'm done in making remote access to VPN with domains.
Example:

cipher AES-256-CBC
setenv FORWARD_COMPATIBLE 1
client
server-poll-timeout 4
nobind
proto udp
remote <domain> 1194
remote <domain> 1194
dev tun
dev-type tun
...


Now, I wanna make a config that " a client will connect to VPN with http proxy"

Example:

cipher AES-256-CBC
setenv FORWARD_COMPATIBLE 1
client
server-poll-timeout 4
dev tun
dev-type tun
proto tcp
remote <domain> 1194
nobind

http-proxy <domain> 80
http-proxy-retry
http-proxy-timeout 5
http-proxy-option CUSTOM-HEADER Host www.googlevideo.com
http-proxy-option CUSTOM-HEADER X-Forwarded-For www.googlevideo.com


I get an error always that " HTTP proxy server could not connect to OpenVPN Server "

Please help.