Hello ipsec!
In my vpn connection to hackthebox the ip of the vpn is not shown in the prompt.
This command does not return anything ps -ef | grep -i 'openvpn [eu|au|us|sg]'|tail -1| rev| awk '{print $1}'|rev |sed 's/\..*$//g'
If I change it to cat ~/htb/lab_ktulu.ovpn | grep "remote" | cut -d " " -f 2 | cut -d "." -f 1 | cut -d "-" -f 2- works fine for me but when I disconnect from the vpn it does not show me the ip of ens33.
Greetings and thanks.
Before

After


Hello ipsec!
In my vpn connection to hackthebox the ip of the vpn is not shown in the prompt.
This command does not return anything
ps -ef | grep -i 'openvpn [eu|au|us|sg]'|tail -1| rev| awk '{print $1}'|rev |sed 's/\..*$//g'If I change it to
cat ~/htb/lab_ktulu.ovpn | grep "remote" | cut -d " " -f 2 | cut -d "." -f 1 | cut -d "-" -f 2-works fine for me but when I disconnect from the vpn it does not show me the ip of ens33.Greetings and thanks.
Before


After