Instructions for pfsense 2.2.2-RELEASE (FreeBSD 10.1) with regards to the original steps
run these commands:
pkg
pkg install net/samba42
Note 1: samba4.3 released on september 8th, you may be able to install this in future with pkg install net/samba43
Note 2: this has a bunch of dependencies which pkg will need to add automatically, potential security issues
Create /etc/rc.conf with this (rc.conf.local no longer required):
samba_server_enable="YES"
Primary conf file name changed:
cat /usr/local/etc/smb4.conf
[global]
server string = pfSense
interfaces = em0, lo
bind interfaces only = Yes
guest account = root
os level = 39
preferred master = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[Public]
comment = Huh?
path = /home/
read only = No
guest ok = Yes
Note 3: keep an eye on the interface only section, replace yours their and change the path as needed.
Providing god doesn't hate you:
/usr/local/etc/rc.d/samba_server start
Performing sanity check on Samba configuration: OK
Starting nmbd.
Starting smbd.
Note 4: Conf file help: (on a linux system) run testparm <your conf file>. This outputted a better formatted conf file that worked on freebsd.
Also make sure you bind your interfaces right, you probably don't want this on the internet (maybe you do?)
netstat -na | grep 445
tcp4 0 0 192.168.1.1.445 *.* LISTEN
netstat -na | grep 137
udp4 0 0 192.168.1.255.137 *.*
udp4 0 0 192.168.1.1.137 *.*
udp4 0 0 *.137 *.*
General help:
http://wiki.samba.org/index.php/Samba4/HOWTOHere's a FreeBSD gpart cheat sheet for those who are lazy and normally use gparted on linux like me:
https://forums.freebsd.org/threads/gpart-cheatsheet-wiping-drives-partitioning-formating.45411/mount /dev/da0p1 backup/
Hope this helps others, feel free to comment if things i've placed here should be done differently.