Closed AkechiShiro closed 8 months ago
I've used this for now : https://unix.stackexchange.com/questions/424719/how-do-i-stop-daemonized-openvpn-connection
I've used this for now : https://unix.stackexchange.com/questions/424719/how-do-i-stop-daemonized-openvpn-connection
To stop OpenVPN connection, just sudo killall openvpn
.
Then a probable enhancement is :
1 - to get the PID of the openvpn
spawned process into temporary file maybe stored in /tmp
.
2 - create a new flag in the tool in order to kill the PID of the openvpn
that was spawned
But this whole upgrade maybe overkill since it's pretty easy to sudo killall openvpn
unless a user has multiples openvpn connections and wants to kill the one to HTB precisely.
I'll close this issue, I may reopen it in the future or link a PR to enhance the tool.
I can kill the
openvpn
process, but I do not want to close my terminal.Is this a clean way ? Just so it is documented, I may add a PR to add this to the message saying how to close the
openvpn
connection. Maybe an enhancement would be to add a flag to thehtb-toolkit
command in order to cut theopenvpn
connection ?I can also just manage it manually, right now.
I'm not using
AthenaOS
and I believe the tool is pretty tailored for use with others specific tools.