Hi all,

I am trying to use the push-peer-info directive so as to push a custom
variable from client to server.

What I have done is:

at client side:

push-peer-info
setenv UV_TERM 3G

at server side i tried both with push-peer-info and without push-peer-info.

Prepared a quick script on server to call it on client connect and check
variables being passed:

#!/bin/bash

logfile=/var/log/openvpn.test.log
echo "$( date +%m/%d/%Y-%H:%M:%S
),${username},${untrusted_ip},${ifconfig_local},${ifconfig_pool_remote_ip},${IV_VER},${IV_PLAT,$UV_TERM}"
>> ${logfile}
exit 0


I am getting at log:
07/12/2018-19:15:19,,172.30.0.180,169.250.0.1,169.250.0.4,2.4.0,linux

It seems that I am not able to push the UV_TERM variable to the server.
My purpose is to have a way to say to the server what type of link is used
for the VPN so as to log it.

Has anyone been successful with this?
I am missing sth?

Thank you very much,
Alex
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to