jamarino94
Dabbler
- Joined
- Feb 22, 2016
- Messages
- 12
Hello, NAS'ers!
I recently put together my first FreeNAS machine, and I'm having fun learning the ropes :)
However, I'm at a bit of an impasse.
I'm trying to setup a jail with OpenVPN. I like being able to log on my home network and manage/access things when I'm out. Anyway, I have found a couple of guides on how to do exactly this, but it seems they are all either outdated, or I'm doing something wrong.
System details:
FreeNAS version 9.3 STABLE
OpenVPN version 2.3.10
Guides:
1) https://thealarmclocksixam.wordpress.com/2014/09/21/how-to-setup-a-vpn-server-in-a-freenas-jail/
2) https://www.kirkg.us/posts/building-an-openvpn-server-inside-a-freenas-jail/
3) https://forums.freenas.org/index.ph...-6-with-access-to-remote-hosts-via-nat.22873/
These are listed in the order I found them, and incidentally also in order of ease (atleast to me).
Progress:
I have:
- Created a fresh jail (called it OpenVPN)
- SSH'd into my FreeNAS machine and "logged into the jail" (is there a better wording for this?) so my terminal now says: root@OpenVPN:/ #
- Installed OpenVPN with pkg install openvpn
- Created a folder called "openvpn" and copied the easy-rsa folder (and contents) to openvpn folder.
- Edited vars in openvpn/easy-rsa (using edit)
So far so good... But next step fails for me:
At this point all the guides say to start generating some keys doing something like:
(Snippet from first guide.)
But, second line gives me an error message saying that "sourcing" is no longer needed and thus forbidden (I'm not familiar with this terminology nor concept). Additionally, neither of the other commands "are found" (clean-all, build-ca etc.).
I've read the file comments as suggested, but I didn't gather much from it.
Have there been some major changes that render these guides useless, or have I missed something completely? :S
Any help much appreciated!
I recently put together my first FreeNAS machine, and I'm having fun learning the ropes :)
However, I'm at a bit of an impasse.
I'm trying to setup a jail with OpenVPN. I like being able to log on my home network and manage/access things when I'm out. Anyway, I have found a couple of guides on how to do exactly this, but it seems they are all either outdated, or I'm doing something wrong.
System details:
FreeNAS version 9.3 STABLE
OpenVPN version 2.3.10
Guides:
1) https://thealarmclocksixam.wordpress.com/2014/09/21/how-to-setup-a-vpn-server-in-a-freenas-jail/
2) https://www.kirkg.us/posts/building-an-openvpn-server-inside-a-freenas-jail/
3) https://forums.freenas.org/index.ph...-6-with-access-to-remote-hosts-via-nat.22873/
These are listed in the order I found them, and incidentally also in order of ease (atleast to me).
Progress:
I have:
- Created a fresh jail (called it OpenVPN)
- SSH'd into my FreeNAS machine and "logged into the jail" (is there a better wording for this?) so my terminal now says: root@OpenVPN:/ #
- Installed OpenVPN with pkg install openvpn
- Created a folder called "openvpn" and copied the easy-rsa folder (and contents) to openvpn folder.
- Edited vars in openvpn/easy-rsa (using edit)
So far so good... But next step fails for me:
At this point all the guides say to start generating some keys doing something like:
Code:
# sh # . vars # ./clean-all # ./build-ca # ./build-key-server <server-name> # ./build-dh # openvpn --genkey --secret keys/ta.key
(Snippet from first guide.)
But, second line gives me an error message saying that "sourcing" is no longer needed and thus forbidden (I'm not familiar with this terminology nor concept). Additionally, neither of the other commands "are found" (clean-all, build-ca etc.).

I've read the file comments as suggested, but I didn't gather much from it.
Have there been some major changes that render these guides useless, or have I missed something completely? :S
Any help much appreciated!