[Granted] Proposal: New directive "push-ignore <option>".

This is where we can discuss what we would like to see added or changed in OpenVPN.

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

Post Reply
Clodo
OpenVPN User
Posts: 37
Joined: Mon Oct 10, 2011 11:25 pm

[Granted] Proposal: New directive "push-ignore <option>".

Post by Clodo » Wed Mar 15, 2017 3:57 pm

Syntax:

Code: Select all

push-ignore "option"
Client-side only. Can be used multiple times, like the "push" directive. If the server push the specified option, ignore it.

Reason:

The directive "route-nopull"
from man
When used with --client or --pull, accept options pushed by server EXCEPT for routes, block-outside-dns and dhcp options like DNS servers.
is too much restrictive in my opinion.
For example, if i need to ignore only a redirect-gateway, i currently need to use route-nopull and rebuild manually other pushed directives,
like explained in this wiki page: that sound like a workaround methods, not a clean approach.
And if i don't want only the dhcp-option pushed directive, why i need to give up any pushed routing option?

My proposal clean the above workaround with a simple

Code: Select all

push-ignore redirect-gateway
I think i can develop a patch or rent a developer about this, but i hope a community feedback about pros & cons. Thanks for any feedback.

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

Re: Proposal: New directive "push-ignore <option>".

Post by TinCanTech » Wed Mar 15, 2017 5:10 pm

Done ..

See --pull-filter in The Manual v24x

Clodo
OpenVPN User
Posts: 37
Joined: Mon Oct 10, 2011 11:25 pm

Re: Proposal: New directive "push-ignore <option>".

Post by Clodo » Wed Mar 15, 2017 8:03 pm

Fantastic, thanks, i totally missed it.

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

Re: Proposal: New directive "push-ignore <option>".

Post by TinCanTech » Thu Mar 16, 2017 12:33 am

You are welcome.

I would be more curios to here how it works for you 8-)

Post Reply