Skip to content

VPN IP don't show in prompt #6

@XimoBaeza

Description

@XimoBaeza

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
image
After
image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions