Follow these steps to run a full Bitcoin node on your FreeNAS box!
Create a jail with static ip
Forward port 8333
to your jails static ip
SSH into jail and install bitcoin
pkg update
pkg upgrade
pkg install bitcoin
pkg install bitcoin-daemon
Fetch the start script and default config file
fetch -o /etc/rc.d/bitcoind https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/init/bitcoind.openrc
fetch -o /usr/local/etc/bitcoin.conf https://raw.githubusercontent.com/bitcoin/bitcoin/master/contrib/debian/examples/bitcoin.conf
Update rpcpassword
in /usr/local/etc/bitcoin.conf
and set txindex=1
. You can generate a suitable password with openssl rand -base64 32
Enable bitcoin to run on startup and start it
sysrc bitcoind_enable=YES
service bitcoind start