You are not logged in.
Pages: 1
Hi, my name is nick and i need some help .
I installed Openvpn a few days ago .... but at the end it didn't start.
openvpn@multi-user.service loaded failed failed OpenVPN connection to multi-user
Here is the first error message i got, the firts time I tried to connect with Hma script:
OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Nov 13 2013
Broadcast message from root@archie (Mon 2014-02-17 19:27:36 CET):
Password entry required for 'Enter Auth Username:' (PID 1095).
Please enter password with the systemd-tty-ask-password-agent tool!
I searched the Web for a couple of days but there is not much , particulary for this kind of issue.
May be someone have had the same issue or have an idea on how to solve this.
Thank you
Offline
Nobody?
I'm still searcching but ,
No way to find a solution I always have the same :
OpenVPN 2.3.2 x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [eurephia] [MH] [IPv6] built on Nov 13 2013
Broadcast message from root@archie (Mon 2014-02-17 19:27:36 CET):
Password entry required for 'Enter Auth Username:' (PID 1095).
Please enter password with the systemd-tty-ask-password-agent tool!
This is the pids while a try to connect:
root 8849 0.0 0.0 55656 2736 pts/2 S+ 00:21 0:00 sudo ./hma-vpn.sh -p udp phoenix (loc1 s1) ------->script command vpn client
root 8850 0.0 0.0 13496 1776 pts/2 S+ 00:21 0:00 /bin/bash ./hma-vpn.sh -p udp phoenix (loc1 s1)
root 8875 0.0 0.0 5816 600 pts/2 S+ 00:21 0:00 tail -f /tmp/hma-ipcheck.txt
root 8883 0.0 0.0 55652 2712 pts/2 S+ 00:21 0:00 sudo /usr/bin/openvpn --script-security 3 --route-up /tmp/hma-routeup.s
root 8884 0.0 0.0 17912 2000 pts/2 S+ 00:21 0:00 /usr/bin/openvpn --script-security 3 --route-up /tmp/hma-routeup.sh --v
root 8885 0.0 0.0 4220 360 pts/2 S+ 00:21 0:00 /bin/systemd-ask-password Enter Auth Username:
Offline
It would help if you pasted the script that you are using/your openvpn config, minus any sensitive data...
Offline
This is the script :
#!/bin/bash
if [ $# -lt 1 ]; then
cat <<EOF
__ ____ ______ __ ___ _ _____ _ __
/ // / |/ / _ | / / / _ \_______ | | / / _ \/ |/ /
/ _ / /|_/ / __ |/_/ / ___/ __/ _ \ | |/ / ___/ /
/_//_/_/ /_/_/ |_(_) /_/ /_/ \___/ |___/_/ /_/|_/
Usage:
$0 [-l] [-p tcp|udp] [server name]
Parameters:
[server name] - this is grep pattern by which the script will filter server list and connect to random of any servers which matched the pattern
-l - if specified, instead of connecting, the script will output server list matched with the grep pattern above
-p tcp|udp - sets preferred protocol, default is OpenVPN UDP
Examples:
$0 -l "New York" - lists all servers in New York
$0 -l -p udp - lists all servers with OpenVPN UDP support
$0 -p tcp Texas - connects to a random Texas server using OpenVPN TCP protocol
EOF
exit -2
fi
cd `dirname $0`
curl=`which curl`
if [ "$curl" == "" ]; then
curl=`which wget`
if [ "$curl" == "" ]; then
echo <<EOF
Error: Please install curl or wget for this script to work.
You can try any of the following commands:
apt-get install wget
yum install wget
apt-get install curl
yum install curl
EOF
exit 1
else
curl="$curl -T 5 -O - "
fi
else
curl="$curl --connect-timeout 5 -s"
fi
openvpn=`which openvpn`
if [ "$openvpn" == "" ] ; then
cat <<EOF
Error: Please install openvpn for this script to work.
You can try any of the following commands:
apt-get install openvpn
yum install openvpn
EOF
exit 1
fi
proto=
list=0
while getopts "lp:" parm
do
case $parm in
l)
list=1
;;
p)
proto="$OPTARG"
;;
?) echo "unknown $parm / $OPTARG"
esac
done
shift $(( $OPTIND - 1 ))
grep="$*"
names=( )
ips=( )
tcps=( )
udps=( )
count=0
echo "Obtaining list of servers..."
$curl [url]https://securenetconnection.com/vpnconfig/servers-cli.php[/url] 2>/dev/null| grep -i -e "$grep" | grep -i -e "$proto" > /tmp/hma-servers
exec < /tmp/hma-servers
rm /tmp/hma-servers
while read server
do
: $(( count++ ))
ips[$count]=`echo "$server"|cut -d '|' -f 1`
udps[$count]=`echo "$server"|cut -d '|' -f 5`
tcps[$count]=`echo "$server"|cut -d '|' -f 4`
names[$count]=`echo "$server"|cut -d '|' -f 2`
done
if [ "$count" -lt 1 ] ; then
echo "No matching servers to connect: $grep"
exit
else
echo "$count servers matched"
fi
if [ $list -eq 1 ]; then
for i in `seq 1 $count`; do
echo -e "${names[$i]}\t${ips[$i]}\t${tcps[$i]}\t${udps[$i]}"
done
exit
fi
i=$(( $RANDOM%$count + 1 ))
echo "Connecting to:"
echo -e "${names[$i]}\t${ips[$i]}"
if [ "$proto" == "" ]; then
if [ "$udps[$i]" != "" ]; then
proto=udp
else
proto=tcp
fi
fi
if [ "$proto" == "tcp" ]; then
port=443
else
port=53
fi
echo "Loading configuration..."
$curl "[url]https://securenetconnection.com/vpnconfig/openvpn-template.ovpn[/url]" > /tmp/hma-config.cfg 2>/dev/null
echo "remote ${ips[$i]} $port" >> /tmp/hma-config.cfg
echo "proto $proto" >> /tmp/hma-config.cfg
#sudo $openvpn --config /tmp/hma-config.cfg
#rm /tmp/hma-config.cfg
cat <<EOF > /tmp/hma-routeup.sh
#!/bin/sh
cat <<EOEO >> /tmp/hma-ipcheck.txt
*******************************************
* *
* You are now connected to HMA Pro! VPN *
* *
*******************************************
Checking new IP address...
EOEO
nohup /tmp/hma-ipcheck.sh >/dev/null 2>&1 &
rm /tmp/hma-routeup.sh
EOF
cat <<EOF > /tmp/hma-ipcheck.sh
#!/bin/sh
ip=""
attempt=0
while [ "\$ip" = "" ]; do
attempt=\$((\$attempt+1))
ip="\`$curl [url]http://geoip.hidemyass.com/ip/[/url] 2>/dev/null\`"
if [ "\$ip" != "" ]; then
echo "Your IP is \$ip" >> /tmp/hma-ipcheck.txt
fi
if [ \$attempt -gt 3 ]; then
echo "Failed to load IP address." >> /tmp/hma-ipcheck.txt
exit
fi
done
EOF
echo "" > /tmp/hma-ipcheck.txt
tail -f /tmp/hma-ipcheck.txt &
chmod 755 /tmp/hma-ipcheck.sh
chmod 755 /tmp/hma-routeup.sh
/tmp/hma-ipcheck.sh
sleep 1
# MODIFICATION BY PETE
#!/bin/bash
pwfile="password.txt"
if [ -f "$pwfile" ]
then
echo "Login details found in password.txt"
else
echo "No Login details found. Please enter:"
read -p "Username: " vpnuser < /dev/tty
echo $vpnuser > password.txt
read -p "Password: " vpnpass < /dev/tty
echo $vpnpass >> password.txt
fi
sleep 1
# adding to config file that password.txt should be used
sed -i 's/auth-user-pass/auth-user-pass password.txt/g' /tmp/hma-config.cfg
# END OF MODIFICATIONS
sudo $openvpn --script-security 3 --route-up /tmp/hma-routeup.sh --verb 2 --config /tmp/hma-config.cfg
rm /tmp/hma-config.cfg
rm /tmp/hma-ipcheck.sh
rm /tmp/hma-routeup.sh 2>/dev/null
rm /tmp/hma-ipcheck.txt
Last edited by jasonwryan (2014-02-19 01:12:01)
Offline
Please use code tags: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
No particular config , it is a Hide my Ass Vpn client .
Just install openvpn, install the servers and the script( we download it on their web site, in a zip file ) in the same directory , .... run the script with the server you want , all on the terminal....that's all.
I did the same way(more or less) with other linux and on arch also a year ago.
But now ! no way to connect this thing.
Last edited by winston smith (2014-02-19 01:01:08)
Offline
Sigh. I've edited your post and added code tags for you, next time please do it yourself.
What hapens if you connect manually, without the script?
Offline
I am using the same service and frankly, I am not impressed with this script. To use it, you have to launch the script, open another terminal, quickly launch
systemd-tty-ask-password --query
type in your username, launch the systemd tool again, and type in the password. That was how I got hooked up to their service.
Poorly done in my opinion.
Last edited by DaBungalow (2014-04-18 00:18:29)
Offline
Pages: 1