Because I do not trust WPA2 Wifi encryption for sensitive data, I implemented IPSec in transport mode between my NAS and my Mac.
Mac OS X
Open the file containing the pre-shared keys:
And add the IP adress of the FreeBSD box:
Add to /etc/racoon/racoon.conf
First you need to compile a kernel that supports IPSec. Check the FreeBSD handbook on how to do that.
Assuming you are running a kernel that supports IPSec:
And add the IP address of the FreeBSD box:
Configure pf rules /etc/pf.conf:
Add to /etc/rc.conf
Add to /etc/sysctl.conf to persist: