Apologies for the double post but I couldn't edit the title of my previous post where I have already put this info as a reply.
The original topic is:
https://forums.openvpn.net/topic16061.html and the issue I'm having is:
Followed Torguard's (I have an account with them) suggestion and renamed the ca globalca.crt to openvpn.crt by editing the line in the openvpn.conf.
Following the 2 guides I mentioned earlier. Geek friendly one - I've got to the step:
Test OpenVPN connection:
/usr/local/etc/openvpn/openvpn onestart /usr/local/etc/openvpn/openvpn.conf <--- this worked and started openvpn (when done from inside the openvpn jail console).
Then added the 2 startup variables to my Nas' rc.conf via the NAS4Free webgui.
Tried to download the test legal torrent advised in the guide but it didn't start. (Although a different legal torrent from another site started no problem). Went to the TorGuard guide I mentioned previously and tried the command to test if it was working:
ifconfig tun0 <---- it just says that "interface tun0 does not exist".
I definitely have a dev tun in my openvpn.conf file and have put the startup variable relating tun this in rc.conf of my NAS.
2 possible reasons I thought it might not work:
1: my nas can't see the jail (which doesn't seem possible as I got them all linked together previously)
2. I'm missing something to do with the tun setting. In the qjail openvpn console i've tried a few different tun value (ie tun, tun0, tun1) and it always says that it doesn't exist.
Not sure how to enable the tun interface, I thought it would just do it automatically now that I have everything setup.
Anyone got any idea why it is not working properly?
Thanks
EDIT: Interestingly when I was going to turn the NAS off I thought I would use the command (from within the openvpn jail console):
/usr/local/etc/openvpn/openvpn onestop /usr/local/etc/openvpn/openvpn.conf
and it said "openvpn not running? (check /var/run/openvpn.pid)" - don't understand why it's not running cause I just started it!
Checked this file and all it had in it was a number :3267 - completely blank otherwise
Thought I would restart openvpn again - this works, accidently tried to start it again and it said "openvpn already running? (pid=3601)" however when I immediately tried to stop openvpn it then said openvpn wasn't running again - so confused!
Once again sorry for double posting - I would delete it if there was an option to!
thanks