Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN IP don't show in prompt #6

Open
XimoBaeza opened this issue Jun 27, 2023 · 2 comments
Open

VPN IP don't show in prompt #6

XimoBaeza opened this issue Jun 27, 2023 · 2 comments

Comments

@XimoBaeza
Copy link

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

@IppSec
Copy link
Owner

IppSec commented Jun 27, 2023

I'll figure out a way to improve it. I'm guessing the issue is the vpn file name, typically I name my VPN's <$server>.ovpn. I'm guessing if you renamed your vpn file to be: eu-vip-28.ovpn then it would work.

@XimoBaeza
Copy link
Author

Renaming the vpn file works correctly.

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants