Since I have a Librem One account, I thought, I’ll install the Librem One Tunnel on my Librem 5 (Byzantium). However, the Librem 5 refuses to import the ovpn file, it says it doesn’t have valid vpn information in it (even though it imported and works just fine on my Ubuntu Bionic desktop computer).
Is there something wrong with the Librem I have, or has Purism not made a version of the Librem One Tunnel that works on the Lirbrem 5 yet?
Anyone know of a list of VPNs known to work on the Librem 5 right now?
What I’m getting from your response is that the VPN option in the Settings ui does not work yet. Correct?
Regarding your commandline option: I don’t know what goes in “yourconnection”, I have no idea what that would mean. All I know about using VPNs is, for example, using the “network” ui to import an ovpn file from the vpn provider. So right now I have the Librem One’s ovpn file for their Tunnel product, but I don’t know how to go from that to doing what you’re suggesting. I don’t expect you to go into a long lesson for just me here, I’m guessing that for someone like me it might be best for me to simply wait until the VPN option is working in the Settings ui in the Librem 5.
@Loki, I have installed all packages referred to in this thread. Still does not work. Here is the command I enter, and the resulting error message I get in the terminal, this error message appears AFTER it asks for and I enter the VPN’s password:
sudo nmcli connection up filename --ask
A password is required
I don’t know what the problem is. I am entering the exact same password that I use successfully to run this same VPN on my Ubuntu desktop computer, so I know the password is fine.
I wonder if this is asking for your phone user password for sudo? After opening the terminal application had you used sudo for anything else before trying to bring up the VPN connection?
When you open a terminal, the first time you use sudo it will ask for your user password (the same password you use for unlocking the lock screen on the phone). So you may have to enter your phone user password then the VPN account password.
It may be clearer to use sudo at least once before calling the nmcli connection up.
From opening a new terminal window, issue sudo echo 1 it will ask [sudo] password for purim: enter your phone user password, subsequent calls to sudo should not require a password so you can now try the sudo nmcli connection up filename --ask and enter your VPN password.
Thanks, but… Although I didn’t make it clear in my earlier post, I had already successfully ran sudo, entering my sudo password. So, the problem I’m having is that the Librem is rejecting my VPN password. What it continually asks for is:
Password (vpn.secrets.password):
But, entering the VPN password won’t work, it keeps asking for that password.
I tried running the command without using sudo, when I tapped on the “enter” button, the terminal did nothing visible other than making the cursor go to a new line, after waiting about two minutes it gave this error message:
I thought you had probably ran sudo already but just wanted to double check and ensure.
It seems that OpenVPNs on the phone may be a little more broken than previously thought. Unfortunately, I am unable to test this at my end as the VPNs I have on the phone are all using Wireguard and the few OpneVPN config files I have authenticate with keys rather than user/pass credentials.
You could now have a look from the main settings application under Settings -> Network and see if your VPN connection is listed, perhaps it’ll allow you set/store the password via the GUI there.
Failing that it should be listed and configurable under nm-connection-editor (that app may not fit on the screen however), from the terminal nm-connection-editor, that should throw up a GUI app, your VPN connection should be listed on the main window, if you choose the VPN connection then choose the small gear icon at the bottom left of the window it should allow you to set and store a password there.
I tried running the command without using sudo, when I tapped on the “enter” button, the terminal did nothing visible other than making the cursor go to a new line, after waiting about two minutes it gave this error message:
Thanks guido. Just so I understand - Will that merge request also solve the problem that I’m seeing; namely, when I use sudo with nmcli, the subsequent step refuses to accept my vpn password (“secret”)?
I ask this because right now, due to that vpn password rejection problem, even the sudo plus nmcli approach fails for me.