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
/etc/racoon/setkey.conf:
FreeBSD 10
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:
Pre-shared keys:
And add the IP address of the FreeBSD box:
Setup: /usr/local/etc/racoon/racoon.conf:
Setup: /usr/local/etc/racoon/setkey.conf:
Configure pf rules /etc/pf.conf:
Add to /etc/rc.conf
Run:
Add to /etc/sysctl.conf to persist: