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?
How to track the current remote endpoint IP
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 7
- Joined: Mon Feb 13, 2017 2:08 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: How to track the current remote endpoint IP
You mean your client ?
-
- OpenVpn Newbie
- Posts: 7
- Joined: Mon Feb 13, 2017 2:08 am
Re: How to track the current remote endpoint IP
Yes, I would like to know what is the IP of the endpoint my client is currently connecting to, and be notified if the endpoint IP changes.
-
- OpenVpn Newbie
- Posts: 7
- Joined: Mon Feb 13, 2017 2:08 am
Re: How to track the current remote endpoint IP
Perhaps I misunderstood the question: it is not my own VPN client implementation, with "I have a VPN client" I mean "I have an instance of openvpn running on my linux machine".
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: How to track the current remote endpoint IP
Try one of the script hooks.