Jump to content
Not connected, Your IP: 3.142.199.54
MateoPeri

Linux Hummingbird client callback

Recommended Posts

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.

Share this post


Link to post
@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
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...