So if I can get it to rename .ovpn to .conf with _ replacing spaces it should work? I'll see what I can do.
This is the line used to rename .ovpn to .conf
Code:for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done
So if I can get it to rename .ovpn to .conf with _ replacing spaces it should work? I'll see what I can do.
This is the line used to rename .ovpn to .conf
Code:for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done
Last edited by dsayers; 21-08-18 at 20:34.
liamkenyon (21-08-18)
Would something like this help?Not near a box to test.Code:for f in *\ *; do mv "$f" "${f// /_}"; done
Always lurking, never posting...
dsayers (23-08-18)
Just been looking on my phone and found the same command https://superuser.com/a/300714
I've tested it on mobile sh and it seems to work. I'll update repo tomorrow with that command before renaming to .conf
liamkenyon (23-08-18)
Ok I have added that command can you retry the command on post 21 https://www.world-of-satellite.com/s...l=1#post473575
liamkenyon (24-08-18)
Will test when I get home pal!
Always lurking, never posting...
PIA Script fully working pal well done!
Always lurking, never posting...
dsayers (24-08-18)
Ok added to main script.
liamkenyon (24-08-18)
I am trying to work out from the scripts what files are needed where. The tut at the top of this is decent, but I'm struggling with the username/password part. I am using VPN unlimited. I have a single .ovpn file. It contains the VPN setting and ca/cert/private key sections. I have a device username and password. Where do I put these? What is the format of the password file?
I've looked at the github dsayers is maintaining and cant see anything similar in vpnumlimited to help with downloading ovpn files for all servers, merely through their account portal the ability to generate a single file for a selected server.
I have renamed the ovpn file and placed it in to the the /etc/openvpn folder I created. OpenVpn does start, but no network traffic is getting through. I guess this is because of the username/password but dont know how to get this in to OpenVPN. I cant see any logging to give me any clues so am in the dark a little. Where is the log file? Can anybody help witht he configuration of this vpn unlimited connection please?
open the client.conf and modify the line "auth-user-pass" so it reads "auth-user-pass auth.txt" (without the quotes)
Now create a txt file called auth.txt and edit with notepad ++ add username and password in auth.txt and send it to etc/openvpn
Thanks for the help. I've done the auth.txt creation, added the line to the bottom of my client.conf. Both files live in /etc/openvpn
root@osmini:/etc/openvpn# ls -l
-rwxr-xr-x 1 root root 49 Aug 27 16:44 auth.txt
-rw-r--r-- 1 root root 5508 Aug 27 16:47 client.conf
The openvpn process starts, but the networking fails. If i press blue to Show Log its empty. Where would the logs be?
The client.conf contains ca, cert and private key sections. Is that ok?
i.e.
...
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
In the client.conf at the top or under the user pass line add
log /etc/openvpn/openvpn.log
Next time you start vpn see if it generates a log file in etc/openvpn.
UPDATE.
I used the command line to run openvpn and see the output. Eveything appears to work ok, so it seems that the remote location I was hoping to connect to has an issue with me using the vpn. Will contact them for advice.
Thanks very much again for your help and knowledge share
Last edited by g_bloggs; 27-08-18 at 18:00. Reason: quoted wrongly
If using virgin I had to use Google dns to get vpn working as soon as I started openvpn I lost network connection. See here https://www.world-of-satellite.com/s...l=1#post462711
Anyone know how to add automatically the line "block-outside-dns" in to all .conf files with every change of the server?