Posts Tagged ‘VSFTPD’

VSFTPd behind NAT / Firewall

Posted in Technical on September 28th, 2011 by iyoung – Be the first to comment

Sorry, yet another geek post. I was trying to get eyefi to deliver images to my NAS Box which is running VSFTPd (Very Secure FTP Daemon) behind my router with network address translation and passive mode would not work which is all that eyefi supports.

To get VSFTPd to work behind your router you need to edit the /etc/vsftpd.conf file and add one simple extra line: -

pasv_address=x.y.z.t

Where x.y.z.t is your externally accessible IP address, if you don’t know it, get it from hereĀ http://www.whatismyip.com/


WordPress on a NAS box

Posted in Technical on September 24th, 2011 by iyoung – Be the first to comment

I bought a 2TB network storage device the other day a WD MyBook Live but wondered if I could get my old website back up and running on it as well as using it for a media store and for streaming to my PS3. While I was there I got the FTP service working properly so I could access it externally through my router.

These are the steps I took to get MySQL and WordPress installed and running incase it helps anyone else looking to do the same.

Download the config file from your MyBook live under
Settings then Utilities.
Edit the file and set ssh enabled to yes
Re-upload the config using the utilities page again, the box will then reboot
SSH into the box using putty for example

root welc0me

once logged in type

passwd

and press enter
enter new root password
Any changes you want to make to the FTP server can be made in /etc/vsftpd.conf
By the way default passive port range is 5000-5099 which you can tweak.
Update the following to Sources.list in /etc/apt/sources.list
change

deb ftp://ftp.us.debian.org/debian main

to

deb ftp://ftp.us.debian.org/debian main contrib non-free

Run

apt-get update
apt-get install mysql-server
apt-get install wget

Run

wget http://wordpress.org/latest.tar.gz
tar xvfz latest.tar.gz
mv wordpress /var/www/yourownname

Then just go to http://nasboxip/yourownname/ in your browser to begin the configuration of wordpress
Once complete you will want to add a virtual host to your Apache config in /etc/apache2/sites-enabled/

I also then changed the existing Apache config file to only allow access from the LAN that way, as it is the default domain it will stop any external web access to the password protected admin interface just in-case there is a weakness in their authentication code.