TotalRecall
Dabbler
- Joined
- Mar 13, 2015
- Messages
- 15
Guide for freenas 10 docker?
ipfw -f flush ipfw -q add 00010 allow ip from any to any via tun0 ipfw -q add 00101 allow ip from me to 10.0.0.0/24 via epair0b uid transmission ipfw -q add 00102 allow ip from 10.0.0.0/24 to me via epair0b uid transmission ipfw -q add 00103 deny ip from any to any via epair0b uid transmission
pkg install openvpn
##Step 21: Move the fixed PIA files into the correct folder we just created ##The actual OpenVPN files we created earlier. ##ca.crt next [root@transmission_1 /media]# cp /media/ca.crt /usr/local/etc/openvpn/ca.crt ##crl.pem next [root@transmission_1 /media]# cp /media/crl.pem /usr/local/etc/openvpn/crl.pem ##our pass.txt file we created
echo 'openvpn_configfile="/usr/local/etc/openvpn/Switzerland.ovpn"' >> /etc/rc.conf
echo 'openvpn_configfile="/usr/local/etc/openvpn/Au Sydney.ovpn"' >> /etc/rc.conf
After hours of troubleshooting and reinstall the jail, i have face an issues where i cannot complete the setup using the original OP guide. The openvpn file from PIA doesn't seem to include ca.crt or crl.pem instead it rename. So alter the command to suit what is available at that directory. But than openvpn failed to start.
Code:##Step 21: Move the fixed PIA files into the correct folder we just created ##The actual OpenVPN files we created earlier. ##ca.crt next [root@transmission_1 /media]# cp /media/ca.crt /usr/local/etc/openvpn/ca.crt ##crl.pem next [root@transmission_1 /media]# cp /media/crl.pem /usr/local/etc/openvpn/crl.pem ##our pass.txt file we created
Than i thought i would try the script @jafrey which worked the first time but the problem is, how do i switch the server to an Australia one? What is proper way to change the script? I thought it is
Code:echo 'openvpn_configfile="/usr/local/etc/openvpn/Switzerland.ovpn"' >> /etc/rc.conf
and replace it with something along this line.
Code:echo 'openvpn_configfile="/usr/local/etc/openvpn/Au Sydney.ovpn"' >> /etc/rc.conf
From what i understand it copy the username and passoword to each of the ovpn profile, so how do i switch to a different profile.
I fix the problem by manually importing both CA and crl as they changed the file name in current openvpn and in conf.Don't forget to point to ca.crt and crl.pem in your openvpn's .conf file! (/usr/local/etc/openvpn/openvpn.conf after following this tutorial).
But agreed, both the tutorial and script need updating now.
pkg install openvpn cat > /etc/rc.conf.d/openvpn <<HERE openvpn_enable="YES" openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf" HERE cd /tmp mkdir openvpn ; cd openvpn wget https://www.privateinternetaccess.com/openvpn/openvpn.zip --no-check-certificate unzip openvpn.zip sed -i .bak 's/auth-user-pass/auth-user-pass pass.txt/' US\ West.ovpn printf "UUUUUUUU\nPPPPPPPPPP\n" > pass.txt mkdir /usr/local/etc/openvpn cp ca.rsa.2048.crt crl.rsa.2048.pem pass.txt /usr/local/etc/openvpn/ cp US\ West.ovpn /usr/local/etc/openvpn/openvpn.conf
Thanks! Here's what I did under FreeNAS-11.0-U2 following your recipe. UUUUUUUU/PPPPPPPPPP is my Private Internet Access login. It worked great, as verified with https://torguard.net/checkmytorrentipaddress.php.
Code:pkg install openvpn cat > /etc/rc.conf.d/openvpn <<HERE openvpn_enable="YES" openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf" HERE cd /tmp mkdir openvpn ; cd openvpn wget https://www.privateinternetaccess.com/openvpn/openvpn.zip --no-check-certificate unzip openvpn.zip sed -i .bak 's/auth-user-pass/auth-user-pass pass.txt/' US\ West.ovpn printf "UUUUUUUU\nPPPPPPPPPP\n" > pass.txt mkdir /usr/local/etc/openvpn cp ca.rsa.2048.crt crl.rsa.2048.pem pass.txt /usr/local/etc/openvpn/ cp US\ West.ovpn /usr/local/etc/openvpn/openvpn.conf
Then restarted jail. openvpn connected and worked great.
SO I installed it, and also made sure to change the name for the ca.rsa.2048.crt file and crl.rsa.2048.pem file. I didn't yet sign up for PIA
Is there anyway I can check if my setting works before signing up for PIA?
IF not, after signing up for PIA, and changing my username/password in the pass.txt (do i just change the pass.txt file in the /usr/local/etc/openvpn/ directory only?
how can I check if it works?