Page 1 of 1

Override server push route and DNS for client defined in ccd

Posted: Sat Jan 14, 2023 4:58 pm
by grapeCent
I have an openvpn network that is typically used for trusted access to my network, however I would like to connect a client I don't have exclusive management over by providing a signed cert for authentication and setting a static IP via ccd

I do not want this client receiving DNS or routes that my trusted clients receive, and I will Masquerade any traffic to/from this cient as well as firewall rules that restrict inbound access from this IP. How do I maintain my existing default VPN config for 99% of the users and override them for a single host?

Re: Override server push route and DNS for client defined in ccd

Posted: Sat Jan 14, 2023 6:44 pm
by Pippin
Hi,

Take a look at --push-remove opt in manual 2.5:
https://build.openvpn.net/man/openvpn-2 ... vpn.8.html
.

Re: Override server push route and DNS for client defined in ccd

Posted: Mon Jan 16, 2023 12:21 am
by grapeCent
Pippin wrote:
Sat Jan 14, 2023 6:44 pm
Hi,

Take a look at --push-remove opt in manual 2.5:
https://build.openvpn.net/man/openvpn-2 ... vpn.8.html
.
Awesome, thanks for that document