Git Product home page Git Product logo

freenas-sabnzbd-openvpn's Introduction

FreeNAS SABnzbd โ‡” OpenVPN

This repository is a modified version of amussey/FreeNAS-SABnzbd-OpenVPN to use SABnzbd instead of SABnzbd. Many files are the same, including most of this README, so all credit to amussey for the awesome work!

This guide and the associated scripts will help you secure your SABnzbd client so it only sends traffic through a VPN. For this particular guide, I'll be showing you how to set up Private Internet Access on a FreeNAS 9.3 jail, but any VPN service should work about the same, and the guide should be generic enough to apply to any FreeBSD jail.

Setup

From the FreeNAS web interface, install the Trasmission plugin.

After Trasmission is installed, log into your FreeNAS machine over SSH. Once inside, run jls to list the jails.

[root@MyNas] /# jls
   JID  IP Address      Hostname                      Path
     2  -               crashplan_1                   /mnt/volume/Plugins/Jails/crashplan_1
     9  -               sabnzbd_3 		              /mnt/volume/Plugins/Jails/SABnzbd_3
[root@MyNas] /#

To log into your SABnzbd jail, run jexec (your jail number) tcsh. For example, to get into sabnzbd_3, we'd run:

[root@MyNas] /# jexec 9 tcsh
root@SABnzbd_3:/ #

Now you're inside your jail, running the tcsh shell. cd to the root of the drive, and clone this repo. git doesn't come pre-installed, but svn does, so you can run the following command to checkout the repo using svn:

svn checkout https://github.com/t3rminalVel0city/FreeNAS-SABnzbd-OpenVPN/trunk/FreeNAS-SABnzbd-OpenVPN

If you want to install git, you can run the following command:

pkg_add -r git

With the directory cloned, cd into it and run make to begin the setup.

root@SABnzbd_3:/ # cd /FreeNAS-SABnzbd-OpenVPN
root@SABnzbd_3:/FreeNAS-SABnzbd-OpenVPN # make

The setup script will walk you through a couple additional steps.

When you've finished these steps, you'll need to copy your openvpn.conf and the associated keys into /FreeNAS-SABnzbd-OpenVPN/openvpn. For Private Internet Access, these are available using the following command:

cd openvpn
wget https://www.privateinternetaccess.com/openvpn/openvpn.zip --no-check-certificate
unzip openvpn.zip
mv Sweden.ovpn openvpn.conf  # You can change this to the endpoint of your choice.

With the config file in place, fire up the OpenVPN process with the following line:

/etc/rc.d/SABnzbdvpn start

To stop the OpenVPN process, you can run the opposite command:

/etc/rc.d/SABnzbdvpn stop

That's all there is to it! Enjoy your privacy!

freenas-sabnzbd-openvpn's People

Contributors

amussey avatar t3rminalv avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.