Sample Header Ad - 728x90

How to get OpenVPN's remote peer external (real) IP address?

1 vote
1 answer
79 views
When connecting to an OpenVPN server I use an FQDN that may resolve into multiple IP addresses yet only one of them is chosen/used as long as the VPN session is alive. How can I get it? ifconfig, route, ip a, ip l, ip r don't have it. journalctl -b | grep "UDPv4 link remote" contains it but I don't want to use/parse journalctl. I'm connecting using NetworkManager's OpenVPN plugin.
Asked by Artem S. Tashkinov (32730 rep)
Sep 1, 2024, 05:52 PM
Last activity: Sep 1, 2024, 06:06 PM