Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

(Transmission) Problems Setting up OpenVPN(PIA)

Joined
Mar 27, 2017
Messages
5
OK so I think I am doing something very wrong i have followed the instructions for this script and it is not seeming to work at all. i have already tried the guide on another plugin jail and a reinstalled plugin, the transmission plugin is working fine.
If there is a better guide i should be following please suggest it thanks in advance :)

0) Full script on gist. I made this for myself to automate a boring and long process. If you don't know what you're doing you should probably do it the 'hard' way first so you understand at least what the script is doing. It's also just for Private Internet Access (PIA) because I have PIA.

1) Tested on my: 9.3-RELEASE-p5 FreeBSD 9.3-RELEASE-p5 #1 f8ed4e8: Fri Dec 19 20:25:35 PST 2014

2) Not responsible for this losing your data, formatting your drives or your wife leaving you. This is supposed to be run inside the jail. It requires at least curl or wget to be installed. Tested with Transmission plugin jail &

3) Code should work like this:

Code:
jls
jexec [JAILID] tcsh
cd /tmp
wget --quiet --no-check-certificate -O pia.sh https://gist.githubusercontent.com/...f18484225b0676fe0c556e7798cc08cdc7a631/pia.sh
chmod +x pia.sh
./pia.sh






The end of the script should show you this:

Code:
Starting openvpn.
Waiting 10 seconds for OpenVPN to spin up
If these are different, OpenVPN is working
Old IP: 68.[x].[x].[x]
New IP: 179.[x].[x].[x]

login as: root
root@192.168.0.100's password:
Last login: Thu May 11 09:59:42 2017 from 192.168.0.101
FreeBSD 10.3-STABLE (FreeNAS.amd64) #0 r295946+21897e6695f(9.10.2-STABLE): Thu Apr 20 17:58:31 UTC 2017

FreeNAS (c) 2009-2016, The FreeNAS Development Team
All rights reserved.
FreeNAS is released under the modified BSD license.

For more information, documentation, help or support, go here:
http://freenas.org
Welcome to FreeNAS
[root@freenas] ~# jls
JID IP Address Hostname Path
1 - PlexPy /mnt/MainLine/jails/PlexPy
2 - plexmediaserver_2 /mnt/MainLine/jails/plexmediaserver_2
4 - transmission_1 /mnt/MainLine/jails/transmission_1
[root@freenas] ~# jexec 4 tcsh
root@transmission_1:/ # cd /tmp
root@transmission_1:/tmp # ./pia.sh
PrivateInternetAccess OpenVPN Setup:
https://www.privateinternetaccess.com/pages/client-control-panel
-> PPTP/L2TP/SOCKS Username and Password
User: MyUSR
Pass: MyPASS
Updating FreeBSD repository catalogue...
Repository FreeBSD has a wrong packagesite, need to re-create database
[transmission_1] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[transmission_1] Fetching packagesite.txz: 100% 1 MiB 14.3kB/s 01:26
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: Operation timed out
Unable to update repository FreeBSD
Updating FreeBSD repository catalogue...
Repository FreeBSD has a wrong packagesite, need to re-create database
[transmission_1] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[transmission_1] Fetching packagesite.txz: 100% 1 MiB 11.2kB/s 01:50
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/packagesite.txz: Operation timed out
Unable to update repository FreeBSD
All repositories are up-to-date.
Repository FreeBSD has a wrong packagesite, need to re-create database
pkg: Repository FreeBSD cannot be opened. 'pkg update' required
Checking for upgrades (0 candidates): 100%
Processing candidates (0 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-ap-southeast-2.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu May 11 10:04:53 AEST 2017:
865c526520e6f0729fde4e5bebe8bb07083ef3151bad1d 39% of 75 MB 67 kBps 11m36s
fetch: transfer timed out
fetch: 865c526520e6f0729fde4e5bebe8bb07083ef3151bad1d5d3191770cc8d8dfd6.tgz appears to be truncated: 31112683/79077312 bytes
No snapshot available. Try running
# portsnap fetch
/usr/ports/security/openvpn: No such file or directory.
root@transmission_1:/tmp # portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-ap-southeast-2.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Thu May 11 10:04:53 AEST 2017:
865c526520e6f0729fde4e5bebe8bb07083ef3151bad1d 65% of 75 MB 56 kBps 07m45s
fetch: transfer timed out
fetch: 865c526520e6f0729fde4e5bebe8bb07083ef3151bad1d5d3191770cc8d8dfd6.tgz appears to be truncated: 52123749/79077312 bytes
root@transmission_1:/tmp #
Hopefully the system is not a problem
CPU - FX 8350
RAM - 8GB G-Skill 1600
MOBO - SABERTOOTH-990FX-R2
Drives - 2X 3Tb Toshiba TOSH-DT01ACA300
OS - FreeNAS-9.10.2-U3 (e1497f269)
 
Top