Script '/etc/vpnc/vpnc-script' returned error 127

Iv Njrc ivonne.nirich at gmail.com
Thu Nov 20 15:28:37 PST 2014


Hello Team!

I am in need of some help:

1) How to check that the VPN is effectively working/up? Is there any command?

2) When I tried to connect to the VPN server, the command shows an error,
due to that I was not able to link the vpnc-script with the application.

Steps done:
a) First, I downloaded the script from
http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script

and added it to the /etc/vpnc/ directory, as follow:

*************************************************************

[root at cl123rnasv2 etc]# ls -ltr | grep vpn
drwxr-xr-x. 2 root root 4096 Nov 19 15:53 vpnc
[root at cl123rnasv2]# cd vpnc/
[root at cl123rnasv2 vpnc]# ls -ltr
total 24
-rwxrwxrwx. 1 root root 23766 Nov 19 15:53 vpnc-script.sh
[root at cl123rnasv2 vpnc]#

****************************************************************
b) When installing, I executed the following command:

./configure --with-vpnc-script=/etc/vpnc/vpnc-script


c) Then I wrote the command once the apps seems to be installed.

***********************************************************

[root at cl123rnasv2 /]# openconnect -u NA32 216.231.151.115
POST https://216.231.151.115/
Attempting to connect to server 216.231.151.115:443
SSL negotiation with 216.231.151.115
Server certificate verify failed: unable to get local issuer certificate

Certificate from VPN server "216.231.151.115" failed verification.
Reason: unable to get local issuer certificate
Enter 'yes' to accept, 'no' to abort; anything else to view: yes
Connected to HTTPS on 216.231.151.115
XML POST enabled
Password:
POST https://216.231.151.115/
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 30, Keepalive 20
sh: /etc/vpnc/vpnc-script: No such file or directory
Script '/etc/vpnc/vpnc-script' returned error 127
sh: /etc/vpnc/vpnc-script: No such file or directory
Script '/etc/vpnc/vpnc-script' returned error 127
Connected tun0 as 192.168.252.118, using SSL
Established DTLS connection (using OpenSSL). Ciphersuite AES128-SHA.
Received server disconnect: b0 'Idle Timeout'
Send BYE packet: Server request
sh: /etc/vpnc/vpnc-script: No such file or directory
Script '/etc/vpnc/vpnc-script' returned error 127
Session terminated by server; exiting.
[root at cl123rnasv2 /]#
[root at cl123rnasv2 /]#
[root at cl123rnasv2 /]#
[root at cl123rnasv2 /]#

*****************************************************************

Will you be able to help me on having this error solve?

And how I will be able to check if the vpn is up?



Thanks in advance for your help fellows!



Cheers,



Ivonne



More information about the openconnect-devel mailing list