What I've Tried
So I hate opening a post about this topic as there are plenty of guides out there to how one can get the Transmission jail to tunnel through OpenVPN/PIA, however, I have tried countless of them with no success. I had used these guides before to successfully set up a jail with a VPN earlier this year but had to do a fresh install of FreeNAS. Some of the guides and scripts I have tried include:
The issue I have had with almost everything I have tried is that it seems to connect to the VPN that is set up in the jail but not actually connect to the internet. So when I have the OpenVPN services off I am able to ping, get my IP, and use transmission as usual (what would be expected when the service is off). However when I turn OpenVPN on it I cannot grab my IP in terminal or ping anything, but when I use the IP checker from TorGuard I see the IP of the VPN but cannot actually download any torrents. I'm not sure if this is because the guides I am using are out of date, but I am using the same version of FreeNAS that I used before and got the set up to work.
This is what it looks like after getting my IP, starting the OpenVPN service, then trying to get the new IP:
And here is the log files for OpenVPN
Other Information
openvpn.conf:
/etc/rc.conf:
Thanks in advance, I would guess it's a networking issue, but being a beginner with FreeNAS I'm not sure how to approach fixing this.
So I hate opening a post about this topic as there are plenty of guides out there to how one can get the Transmission jail to tunnel through OpenVPN/PIA, however, I have tried countless of them with no success. I had used these guides before to successfully set up a jail with a VPN earlier this year but had to do a fresh install of FreeNAS. Some of the guides and scripts I have tried include:
- https://www.reddit.com/r/freenas/comments/41fhz3/configuration_guide_for_openvpn_and_ipfw_so_that/
- https://github.com/amussey/FreeNAS-Transmission-OpenVPN
- https://forums.freenas.org/index.ph...g-up-transmission-with-openvpn-and-pia.24566/
- https://gist.github.com/jed-frey/6d475dcc34c710f62a7c
- and a couple others I found through google
The issue I have had with almost everything I have tried is that it seems to connect to the VPN that is set up in the jail but not actually connect to the internet. So when I have the OpenVPN services off I am able to ping, get my IP, and use transmission as usual (what would be expected when the service is off). However when I turn OpenVPN on it I cannot grab my IP in terminal or ping anything, but when I use the IP checker from TorGuard I see the IP of the VPN but cannot actually download any torrents. I'm not sure if this is because the guides I am using are out of date, but I am using the same version of FreeNAS that I used before and got the set up to work.
This is what it looks like after getting my IP, starting the OpenVPN service, then trying to get the new IP:
Code:
root@transmission_1:/usr/local/etc/openvpn # wget http://ipinfo.io/ip -qO - XX.XXX.XXX.XX root@transmission_1:/usr/local/etc/openvpn # service openvpn start Starting openvpn. root@transmission_1:/usr/local/etc/openvpn # wget http://ipinfo.io/ip -qO - root@transmission_1:/usr/local/etc/openvpn #
And here is the log files for OpenVPN
Code:
Tue May 22 18:12:21 2018 library versions: OpenSSL 1.0.2j-freebsd 26 Sep 2016, LZO 2.10 Tue May 22 18:12:22 2018 RESOLVE: Cannot resolve host address: nl.privateinternetaccess.com:1198 (hostname nor servname provided, or not known) Tue May 22 18:12:24 2018 RESOLVE: Cannot resolve host address: nl.privateinternetaccess.com:1198 (hostname nor servname provided, or not known) Tue May 22 18:12:24 2018 Could not determine IPv4/IPv6 protocol Tue May 22 18:12:24 2018 SIGUSR1[soft,init_instance] received, process restarting
Other Information
openvpn.conf:
Code:
client dev tun proto udp remote nl.privateinternetaccess.com 1198 resolv-retry infinite nobind persist-key persist-tun cipher aes-128-cbc auth sha1 tls-client remote-cert-tls server auth-user-pass /usr/local/etc/openvpn/pass.txt comp-lzo verb 1 reneg-sec crl-verify /usr/local/etc/openvpn/crl.rsa.2048.pem ca /usr/local/etc/openvpn/ca.rsa.2048.crt disable-occ
/etc/rc.conf:
Code:
portmap_enable="NO" sshd_enable="NO" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" hostname="transmission_1" devfs_enable="YES" devfs_system_ruleset="devfsrules_common" inet6_enable="YES" ip6addrctl_enable="YES" transmission_conf_dir="/var/db/transmission" transmission_download_dir="" transmission_enable="YES" openvpn_enable="YES" openvpn_configfile="/usr/local/etc/openvpn/openvpn.conf"
Thanks in advance, I would guess it's a networking issue, but being a beginner with FreeNAS I'm not sure how to approach fixing this.
Last edited: