Jump to content
Not connected, Your IP: 3.149.252.37
Sign in to follow this  
JavaJoeUK

ANSWERED eddie -cli not executing script on vpn.up

Recommended Posts

Hi I have eddie installed on a headless Ubuntu 14.04 server and I cant get it to start my script, I dont know if its the script which is wrong or the the way I am calling it. I am new to all this.

The session starts ok but the service does not start. The service starts and stops ok outside of the script.

 

Thanks for the help in advance

sudo airvpn -cli login=XXXX password=xxx remember=true server=alrai connect=true event.vpn.up.filename = home/mylaptop/.airvpn/start-deluged event.vpn.down.filename = home/mylaptop/.airvpn/stop-deluged

The start/stop scripts are owned by root and are executable

#!/bin/sh
#start deluged whith vpn up
service deluged start
!/bin/bash
#stop deluged when vpn goes down
service deluged stop

 

Share this post


Link to post

Hello,

 

that's a known bug affecting Eddie 2.8.8 and older versions, fixed in 2.9.2 and 2.10.1 Experimental, therefore you probably need to upgrade.

https://airvpn.org/services/changelog.php?software=client&format=html

 

You also need to fix the syntax of your command invoking the Air client, all the options start with a "-" symbol.

https://airvpn.org/topic/11541-command-line-edition-and-syntax

 

Kind regards

Share this post


Link to post

Hi I changed the command line to include '-' and upgraded to 2.9.2 for ubuntu but the scripts are still not running. 

Share this post


Link to post

I could not get eddie to run my scripts at all but did mange using openvpn. It would not work if it was in the '.conf' file.

I also had problems updating resolvconf which the script fixed.

This is advice for anyone else that might find the same problem.

openvpn --script-security 2 --up /etc/openvpn/up.sh --down /etc/openvpn/down.sh  --config AirVPN_NL-Alblasserdam_Alrai_UDP-443.conf

the up.sh

#! /bin/bash

case "$(pidof deluged | wc -w)" in

0)  echo "VPN up deluged started" 
    /usr/bin/mail -s "Deluge UP" a@b.com <<< "vpn up deluged starting"
    service deluged start
    /etc/openvpn/update-resolv-conf
    echo "rolv-conf-updated"
    ;;
1)  # all ok
    ;;
esac

Share this post


Link to post

if anyone is still searching / looking for this

it seems that it only executes scripts in the same directory as the eddie executable, in fact it 'edits' the default.xml file where I put those and removes the path to anywhere else

in that folder it works fine... 

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
Sign in to follow this  

×
×
  • Create New...