How to track the current remote endpoint IP
Posted: Wed Feb 15, 2017 2:32 am
I have a VPN client configured so that it connects randomly to a pool of possible UDP VPN servers, and, if connection drops, automatically reconnect perhaps to a different server.
I would like to track which is the selected IP of the end point.
I can think of two ways of doing that:
1) Monitor the log and grep for messages starting with "UDP link"
2) setting up a management interface and activate "state on"
Is there a more elegant way to do that, like telling openvpn to call a certain script every time the remote end point changes?
I would like to track which is the selected IP of the end point.
I can think of two ways of doing that:
1) Monitor the log and grep for messages starting with "UDP link"
2) setting up a management interface and activate "state on"
Is there a more elegant way to do that, like telling openvpn to call a certain script every time the remote end point changes?