Wishlist: Pushing 'server' directive

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
xeon_greg
OpenVpn Newbie
Posts: 5
Joined: Fri Dec 13, 2013 12:55 pm

Wishlist: Pushing 'server' directive

Post by xeon_greg » Thu Sep 24, 2015 7:16 am

It would be great to push 'server' directive to clients. That clients could store it somewhere for further connections, and remove old unusable server addresses
DNS using is very inconvenient, caching time, having DNS itself and so on

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Wishlist: Pushing 'server' directive

Post by Traffic » Thu Sep 24, 2015 4:49 pm

By the sound if this; I think you mean:
  • --push "remote {server.ip.address} | {server.dns.name} port proto"
:ugeek:

xeon_greg
OpenVpn Newbie
Posts: 5
Joined: Fri Dec 13, 2013 12:55 pm

Re: Wishlist: Pushing 'server' directive

Post by xeon_greg » Sat Sep 26, 2015 8:39 am

something like that

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Wishlist: Pushing 'server' directive

Post by Traffic » Sat Sep 26, 2015 9:48 am

Take a look at --setenv-safe in The Manual v23x

xeon_greg
OpenVpn Newbie
Posts: 5
Joined: Fri Dec 13, 2013 12:55 pm

Re: Wishlist: Pushing 'server' directive

Post by xeon_greg » Sat Sep 26, 2015 11:38 am

ok, suppose l'll set this: OPENVPN_remote=xxx.xxx.xxx.xxx , how client can use it ?. and how to exclude one of the old 'remote' directive on the client side.
is there some extended manual for using custom variables on client's side ?

xeon_greg
OpenVpn Newbie
Posts: 5
Joined: Fri Dec 13, 2013 12:55 pm

Re: Wishlist: Pushing 'server' directive

Post by xeon_greg » Sat Sep 26, 2015 11:41 am

--setenv does the same but without prefix. show me the way how to use this feature correctly. please

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Wishlist: Pushing 'server' directive

Post by Traffic » Sat Sep 26, 2015 12:19 pm

xeon_greg wrote:setenv does the same
--setenv is not pushable, only --setenv-safe is ..
xeon_greg wrote:l'll set this: OPENVPN_remote=xxx.xxx.xxx.xxx , how client can use it ?
by utilizing the --up script ..

For example:

Code: Select all

#!/bin/bash
echo $OPENVPN_remote

Post Reply