FreeNAS's default shell is not sh
, and therefore doesn't support the 'export' command. The ./vars
script needs the export
command to set environment variables it then needs.
So before you call ./vars
(don't call source) call:
sh
This is clearly stated in the site: http://joepaetzel.wordpress.com/2013/09/22/openvpn-on-freenas-9-1/