Great job! There's a little bug though, in the script in lines 40, 47 and 54 you assume that the user is pi, so if you run this script on a different user it doesn't work. Use $HOME instead.
EDIT: in as well.
EDIT2: Whoops, I forgot that it runs on root, so $HOME doesn't really work. Either way, you can just change /home/pi/ to /home/whateveryouruseris/ in and
If anybody has any questions, feel free to direct them to me and I'll do my best to answer as fully as possible. Just as a side note - we'll hopefully have an additional 4 or 5 locations before Christmas, and anybody who sign up at any time will receive access to all of our locations.
Liam -
Very nice solution at
Change to match your tun name.
As for the "sudo start" parts I created a file "sudo "and put in it
stop
start
Should be enough to get you close if not do all that you wanted.
PIA are well recommended around here.
Looks like 's "christmas offer" is still live though.
~$7.21/yr
I have an account with them which I admittedly don't use much, but it seems to perform well whenever I have. The status page with the list of nodes is here:
Alright losers, saw this over on OzBargain and thought I'd pass it on.
has an offer for unlimited data VPN at only £1pa, price to be carried on annually if you get in on this deal.
Signed up and tried it, looks OK. Certainly good enough to stream from BBC iPlayer etc.
Anyway it's only a couple of dollars so worth a punt and signing up now just in case you ever need a VPN in future which lets face it will probably will with the snooping laws coming in.
Silly price for the service.
It should abort if you're not starting it with sudo. I got this after not doing that:
: line 17: cd: /etc/openvpn/easy-rsa: No such file or directory : line 18: /etc/openvpn/easy-rsa/vars: No such file or directory : line 19: ./build-key-pass: No such file or directory : line 20: cd: keys: No such file or directory Error opening Private Key 1995536480:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('','r') 1995536480:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: unable to load Private Key [ERROR]: Client Public Key Certificate not found:
That's worth a try. But while you are using it, set up some other company's VPNs too. You can get Astrill or Vypr up and running once you are on and once it's up and running they can't blOck you any more.
I think I got it. I forgot to change my router's IP address in the file. Another thing I noticed in the tutorial, when running the script "" that is given as a pastebin, there are several typos in it that make the script exit with an error.
As far as I can tell, it is working, a traceroute -n command (and using some public wifi) shows that my VPN is the first connection, then my router, then the network. Disabling the OpenVPN (or TunnelBlick) connection on my Macbook drops the VPN as the first part of the traceroute, so I think its working. Thanks for your help!
Yeah, there are 2 typos in the script. Use this script instead and it will work. Also, make sure you comb over the settings and make sure all the ip addresses are right. It took me a while, but I got it working.
At we're offering over 95% off our standard pricing for our "Small" package. Pay what you want - from as low as £1/year.
Our Pay What You Want Scheme:
VPN Compare write up:
Sure bit since I cannot get reddit formatting to work.. here you go with a pastebin:
I had a problem where my containers (*arr) wouldn't connect, except when I would start them after NordVPN, so I wrote a littel bash script for that. So another pastebin for that:
when i run pivpn -a it says "cat: /etc/pivpn/INSTALL_USER: No such file or directory Enter a Name for the Client: homevpn : line 165: : No such file or directory /opt/pivpn/m"
what did i mess up?
Go for these if you’re looking for free ones - * Psiphon for android * Betternet for iOS and macOS
If you want paid, might still work. Not sure though.
I used to use L2TP when I was China. I think it might work but the connectivity wont be perfect and It will disconnect.
Not sure what platform you are on, but when I did this same thing on a Raspberry Pi3 there was a bash script called in /etc/openvpn/easy-rsa/keys. That will make the OVPN config file you need for the IOS app. Make sure you use the same client name you used earlier when you created the key. You could also do it by hand though.
It looks like sometimes, but it isn't. I already have seen excelents discounts from ibVPN (1 year for free), (4GPB/2 years) and some others. But the good deals does not happen everyday, you need to follow the subreddit for a while, checking it with some frequency, to take advantage of them as soon as they appear.
I answer myself as I have found the way.
cd /etc/openvpn/easy-rsa chmod -R 700 /etc/openvpn/easy-rsa . ./vars ./build-key-pass Client3 cd keys openssl rsa -in -des3 -out
And reuse the to create the ovpn, get the file using winscp etc...
If you're running the script manually, try running it with sudo- this looks like it might be a permissions problem, I think that resulted in the program not sourcing the vars file correctly. If that doesn't work, try running out through the main script instead.
You've already run the install script and done the server side setup, right?
I ran into a problem trying to create a profile, this is my output:
[email protected]:/root/OpenVPN-Setup# Please enter a Name for the Client: andychu NOTE: If you run ./clean-all, I will be doing a rm -rf on /etc/openvpn/easy-rsa/keys pkitool: Need a readable and in /etc/openvpn/easy-rsa/keys Try pkitool --initca to build a root certificate/key. Error opening Private Key 1995453648:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('','r') 1995453648:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: unable to load Private Key [ERROR]: Client Public Key Certificate not found:
Here's what I found, they were both pastern files.
I skipped over the section about changing the router IP address to match your own. In my case, mine is different than the one in the tutorial. My mistake, but the article says that the only things you need to check are in caps, this section was not. I went and read through the whole thing the second time.
And secondly, the
script
This one was not my doing, the script has a few errors (mostly blank characters that make it where the script complains about errors. Other than that, it went surprisingly well! That, or something odd happens copying and pasting from pastebin...
This ReadWrite tutorial is great. I use it with an Android phone.
Be aware, there is a type in the script on the author's post, so use a fork or fix her line breaks.
Check out the source for the script, it's very easy to follow:
You need to have that file in the same directory as all of the rest of your files.