Copy or move ca.crt and crl.pem into the directory if you already installed them in /etc/openvpn.I used ~/vpn (/home/pi/vpn) but you can put it anywhere you like. If I get time I may write out detailed steps, but for now here is the quick version Here are the configuration steps I took to get it working without using the Without the GUI, without changing configs, and without an nf Put all my configs in any directory I want and select any PIA server It is a lotĮasier than trying to alter all of the PIA config files. It willĪugment or override what is in the configuration file. I am surprised nobody mentioned flags for the openvpn command. Here’s the original discussion thread I used to write the script: myscriptname and when it’s finished I exit terminal.ĭo you think that if these both commands below show that my IP has changed and there’s tun0 10.1.10.1 everything is fine and I’m invisible? wget -qO- echo Now I need to manually exit from OSMC, go to terminal (pressing ESC when exiting) and then write to terminal. I just would prefer to have autostart for the script I wrote. Then I read from some other place that there might be OpenVPN already running and that’s why I kill OpenVPN first (and check my IP address which is the one when I check it from my laptop when it’s not connectet to PIA) and then start the OpenVPN and everything seems to work. The OpenVPN app showed that I am connected to PIA but when I check my IP address it’s the same as without the PIA. I first tried to follow the Brian Hornsby blog and have tried it but the issue was that when I opened the OpenVPN app in OSMC the IP didn’t change. Thanks! I’ll try the last part of your instructions for the auto connect to PIA. I assume I’m not showing my own IP right? (Sorry, I’m so noob with OSMC) I have also tested the traceroute and the first line says 10.1.10.1 (or 10.45.10.1) and next line shows PIA’s address. Sudo openvpn -cd /home/osmc/vpn-config -config YOURPIALOCATION.ovpn -auth-user-pass $Įcho "if you see tun0 10.1.10.1 everything is ok and you can exit terminal # the last line of the script tests that tun0 is activated. # the YOURPIALOCATION.ovpn to ie Germany.ovpn/UKLondon.ovpn/your preferred location. # and after the script has connected to Private Internet Access, you need to change # This script kills openvpn and then opens it, checks the IP address before The script is my first ever so sorry if it’s not made right… At least I can get my IP changed to PIA’s IP in my OSMC when I go to terminal at the OSMC at startup and start this script. I’m new here and have a question how to get this script working at startup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |