MateoPeri 0 Posted ... Hi! I was wondering how I can set a script to run when the VPN tunnel is up. With regular OpenVPN I would just use ` --script-security 2 --up script.sh`. How would I do this with Hummingbird CLI? Thanks in advance. Quote Share this post Link to post
Staff 10015 Posted ... @MateoPeri Hello! We're sorry, you can't do that from within Hummingbird. You might catch from Hummingbird output (Hummingbird prints to stdout, so you can pipe its output trivially) the string "CONNECTED". When it is caught, you run what you want and (contrarily to OpenVPN) you are not forced to do it with root privileges, which is an important security bonus. If you run Linux, consider Bluetit. It sends a D-Bus event when a connection is established. The developer's documentation is being written and it may come handy for your use case too. Stay tuned in the "News" forum, when the documentation is ready we will announce it there. Kind regards Quote Share this post Link to post