Pushing Proxy option for Clients after/while connecting

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Lucifer_
OpenVpn Newbie
Posts: 1
Joined: Mon Dec 04, 2023 12:20 pm

Pushing Proxy option for Clients after/while connecting

Post by Lucifer_ » Mon Dec 04, 2023 12:51 pm

Hello,

I am looking for an option to push a Proxy via dhcp to my OpenVPN clients, preferebly to be configureable in the client-config file there I allready set a stattic so that my clients gain access to the part of the company Network as usual. I have mutiple Vlans assigned to the Server, so that I can sort each client to the Vlan he belongs, this happens automatic after inital configuration with an firewalld-script. The Clients from one Vlan are planed to have internet access trough a proxy-server. Even tho dns resolving for the routed Vlan works, I have not found a way to automaticly set a proxy for those clients. The only thing that works it setting the proxy-url manualy or letting Firefox detect the Network Settings, using the System Settings it doesnt work. With mutiple Vlans that are meant to not route betwean each other the solution is not just to push a route to 0.0.0.0 0.0.0.0, because then you gain access to the other vlans aswell. not just the intended parts.

So my Networkstuckture as such is:

VLAN 1 - normal Company Network with shares, dns and proxy - 192.68.255.0/24
VLAN 10 - external ipv4 address
vlan 60 - vlan for other stuff, not to mention - 192.168.200.0/24
tcp openvpn server subnet - 10.1.0.0/24
udp openvpn server subnet - 10.0.0.0/24

As far as I am aware the connectio needs to be TCP to sucsefully use a proxy server

the openvpn has acces to every network except the external - which is behind a sophos firewall with NAT rules so connection can be esstablished.

My client config File right now for exaple is for the Vlan that matters:

push "dhcp-option DNS 192.168.255.192"
push "route 192.168.255.0 255.255.255.0"
push "dhcp-option DOMAIN-SEARCH example.com"
push "dhcp-option ADAPTER_DOMAIN_SUFFIX example.com"


My client config File that I tried to push Proxy through multiple options such as:

push "dhcp-option DNS 192.168.255.192"
push "route 192.168.255.0 255.255.255.0"
push "dhcp-option DOMAIN-SEARCH example.com"
push "dhcp-option ADAPTER_DOMAIN_SUFFIX example.com"

push "dhcp-option http-proxy 192.168.255.101 8080"
push "dhcp-option http-proxy proxy.example.com 8080"
push "dhcp-option HTTP-PROXY 192.168.255.101 8080"
push "dhcp-option HTTP-PROXY proxy.example.com 8080"
push "dhcp-option PROXY_HTTP 192.168.255.101 8080"
push "dhcp-option PROXY_HTTPS 192.168.255.101 8080"
push "dhcp-option PROXY_AUTO_CONFIG_URL https://example.tld/proxy.pac"



as mentioned above I would like my clients in vlan 1 to use the proxy to gain internet access.

thanks in andvanced for any help, for questions regarding my network just ask I am trying to provide the nescacarry informations.

Post Reply