OpenVPN - push dns depends on a client

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
lkt
OpenVpn Newbie
Posts: 1
Joined: Mon Mar 12, 2018 12:57 pm

OpenVPN - push dns depends on a client

Post by lkt » Mon Mar 12, 2018 1:23 pm

Hi all
I try to configure OpenVPN server on Ubuntu 16.04.

I enabled the directive that configure all clients to redirect their default network gateway through my VPN. But I would like that some certain clients do not redirect their default network gateway through my VPN just have access to private network.

Is it possible ?

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

Re: OpenVPN - push dns depends on a client

Post by TinCanTech » Mon Mar 12, 2018 2:05 pm

Use --client-config-dir and specify each client connection individually.

See https://openvpn.net/index.php/open-sour ... tml#policy

Also See --client-config-dir in The Manual v24x

Post Reply