Hi,

is there a way to figure out which client is connected to which IP address 
(i.e. interface) other than to grep the logs?

I have a multihomed system where one uplink is of higher quality than the 
others and I would like to keep the more important tunnels on that one (if 
available, of course). I regularly have longer lasting tunnels than I normally 
keep the logs and would not like to keep them longer if not necessary.

Is that info passed to the client-connect script? Maybe I could do some 
accounting in there unless there is a more elegant way. I’ve skimmed through 
whats passed in environment variables and in the config files to it but 
couldn’t find a possible candidate on the first glance.

I need y.y.y.y%iface part from the log line below.

Jun  2 13:35:53 qbs01 openvpn[31600]: x.x.x.x:54912 [vpn] Peer Connection 
Initiated with [AF_INET]x.x.x.x:54912 (via [AF_INET]y.y.y.y%iface)

thank you.

_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to