**************** Read me ****************
- This guide have not been made to offend anyone.
- Nor am i saying i know what I'm doing.
- Nor is it written as elegant as the snort2pfsense howto.
- Nor to frustrate people with a Hard disk smaller than 10GB.
- This is not likely going to be available as a package since it's a bad idea on a firewall.
- Reply's will be filtered by red.bikeshed.org or blue, can't decide.
- If this in anyway fulfilled any bounty request you have posted,
then don't hesitate to send it via paypal to crazypark2@yahoo.dk,
so i can donate it to Daniel's work on the Freenas package.
*****************************************So why make it you may ask?
Well my 4GB HD did make to much noise so i upgraded.
Goal:
To make a drop zone storage on the local net.
First:
Pure-ftp won over vsftpd because of puredb.
Howto: ( Based on
http://www.bsdguides.org/guides/freebsd/networking/pure-ftpd_virtual_users.php )
-------------------------------------------------------------------------------
( Enable ssh access in pfsense gui )
( Use putty to login to server using root and press 8 for shell )
# pkg_add -r puredb
# pkg_add -r pure-ftpd
# cd /usr/local/etc
# cp pure-ftpd.conf.sample pure-ftpd.conf
( changing conf , to exit press " esc a a " )
# ee pure-ftpd.conf
ChrootEveryone yes
PureDB /usr/local/etc/pureftpd.pdb
Umask 177:077
AllowUserFXP no
CreateHomeDir yes
Bind 192.168.1.1,3333 ( your pfsense lan ip and a unused port )
( close putty and start it again with user = admin and press 8 for shell )
# pw groupadd ftpgroup
# pw useradd ftpusers -c "Virtual FTP Users" -g ftpgroup -d /dev/null -s /sbin/nologin
# mkdir /usr/ftpusers
# pure-pw useradd bob -u ftpusers -d /usr/ftpusers/bob -m
Password:
Enter it again:
( To start the server )
# cd /usr/local/sbin/
# chmod 755 pure-config.pl
# ./pure-config.pl /usr/local/etc/pure-ftpd.conf
( to start on boot add 2 lines to pureftp.sh )
# ee /usr/local/etc/rc.d/pureftp.sh
#!/bin/sh
/usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf
--------------------------------------------------------------------------------
Extra ( Making bob's files available from browser )
# /bin/ln -s /usr/ftpusers/bob /usr/local/www/getit
and Upload snif to bob
http://www.bitfolge.de/snif-en.htmlthen goto
http://192.168.1.1/getit/ to view and download
That's it
