Ξ welcome to cryptostorm's member forums ~ you don't have to be a cryptostorm member to post here Ξ
Ξ any OpenVPN configs found on the forum are likely outdated. For the latest, visit here or GitHub Ξ
Ξ If you're looking for tutorials/guides, check out the new https://cryptostorm.is/#section6 Ξ

Problems configuring on Reborn OS (Arch Linux)

Looking for assistance with a cryptostorm connection issue? Post here & we'll help out. Also: if you're not sure where to post, do so here & we'll move things around as needed. Also: for quickest support, email our oddly calm & easygoing support reps at support@cryptostorm.is :)

Topic Author
lazarus_long
Posts: 4
Joined: Tue Oct 30, 2018 7:17 pm

Problems configuring on Reborn OS (Arch Linux)

Postby lazarus_long » Tue Oct 30, 2018 7:35 pm

I had set this up once before on a previous Antergos install and had problems until I figured out I was missing dnsmasq. After installing it my config worked. So I installed on Reborn and I am still getting an error on the last step. I actually imported my config files three times trying to figure out what I had done wrong. Here is what I put into terminal for the last step minus my token and what came out:

[root@Minerva system-connections]# cd /data/Documents/conf
[root@Minerva conf]# CSTOKEN=MY-CRYPTOSTORM-TOKEN for conf in `ls *.ovpn|sed -e's/.ovpn//'`;do sed "/\[vpn\]/a username=$CSTOKEN" -i /etc/NetworkManager/system-connections/$conf sed -e"s/password-flags=.*/password-flags=0/" -i /etc/NetworkManager/system-connections/$conf sed "\$a\\\n[vpn-secrets]\npassword=whatever\n" -i /etc/NetworkManager/system-connections/$conf done
bash: syntax error near unexpected token `do'
[root@Minerva conf]#

I am not sure what the deal is. I have DNSMASQ and Openvpn. are there any other dependencies or am I missing something else. I followed the Ubuntu guide minus the append the three lines to the config files as arch doesn't have the same script Ubuntu does.
I have all the servers on my panel probably times three, but, they require the token.


Topic Author
lazarus_long
Posts: 4
Joined: Tue Oct 30, 2018 7:17 pm

Re: Problems configuring on Reborn OS (Arch Linux)

Postby lazarus_long » Tue Oct 30, 2018 9:09 pm

To clarify cryptostorm is working if I access one of the servers through the Terminal I just want to edit all of them with the token at once.


Topic Author
lazarus_long
Posts: 4
Joined: Tue Oct 30, 2018 7:17 pm

Re: Probvia terminallems configuring on Reborn OS (Arch Linux)

Postby lazarus_long » Wed Oct 31, 2018 4:51 am

Nevermind I connected via terminal since that is better. I do have one problem though. This part didn't work.
So you don't have to enter your token every time you connect, store your token in a random file.
(Replace CsTok-enGvX-F4b4a-j7CED with your token or your token's hash using the token hasher at https://cryptostorm.is/#section6, under the teddy bear
And replace /home/test/cstoken with the location you want to save the token to. My username is "test", so I'm storing the file in /home/test/cstoken)
echo CsTok-enGvX-F4b4a-j7CED > /home/test/cstoken;echo anythingcangohere >> /home/test/cstoken;chmod 600 /home/test/cstoken
Then edit all the configs to use /home/test/cstoken:
sed -e's_^auth-user-pass_auth-user-pass /home/test/cstoken_' -i *.ovpn

This part replacing test with my username did not work for me. It made a file but it still asks me for a password when I connect. The file is in my home folder with nothing on it but my token.

User avatar

df
Site Admin
Posts: 407
Joined: Thu Jan 01, 1970 5:00 am

Re: Problems configuring on Reborn OS (Arch Linux)

Postby df » Wed Oct 31, 2018 12:35 pm

In your first post, the problem is that you're issuing a multiline set of commands as a single command.
If you want to do that, semi colons would need to be added in the right places, I.e.:

CSTOKEN=CsTok-enGvX-F4b4a-j7CED;for conf in `ls *.ovpn|sed -e's/.ovpn//'`;do sed "/\[vpn\]/a username=$CSTOKEN" -i /etc/NetworkManager/system-connections/$conf; sed -e"s/password-flags=.*/password-flags=0/" -i /etc/NetworkManager/system-connections/$conf; sed "\$a\\\n[vpn-secrets]\npassword=whatever\n" -i /etc/NetworkManager/system-connections/$conf; done

But those commands were intended for Ubuntu. I haven't tested on Arch, not even sure if they use NetworkManager. But if they do, then the above commands should work.

As for your last post, that sed command needs to be ran from the same directory that has your .ovpn config files that you download from our website or github.


Topic Author
lazarus_long
Posts: 4
Joined: Tue Oct 30, 2018 7:17 pm

Re: Problems configuring on Reborn OS (Arch Linux)

Postby lazarus_long » Thu Nov 01, 2018 12:01 am

Yes i was running from that directory. it still is asking me for my password. And yes network manager can be installed on arch. i think it is installed by default on the GNOME desktop which i run.

User avatar

df
Site Admin
Posts: 407
Joined: Thu Jan 01, 1970 5:00 am

Re: Problems configuring on Reborn OS (Arch Linux)

Postby df » Wed Nov 14, 2018 8:41 am

See the updated commands @ https://cryptostorm.is/nix
Turns out on some non-Ubuntu distros NM adds the file extension '.nmconnection' for the configs in /etc/NetworkManager/system-connections/
So the commands have been updated to check for that


Return to “member support & tech assistance”

Who is online

Users browsing this forum: No registered users and 42 guests

cron

Login