FreeNAS as a local Debian Repository Mirror




I’ve finally finished setting up a FreeNAS box as a local Debian repository mirror. I’ve done this with a new feature of FreeNAS - the web server! The document root holds debian/ and I’ve set a cron job to rsync with a local repository every night at 3AM.

I also updated my local DNS resolver to use that FreeNAS box IP address as the host IP for ftp.debian.org and ftp.us.debian.org. So far I have not experienced any major problems. :-)

2 Responses to “FreeNAS as a local Debian Repository Mirror”


  1. 1 Gary Sims

    Great post. This is a good example of a practical use of FreeNAS. Which version did you use? Rsync in FreeNAS is very stable and the ability to schedule syncs is great.

    Regards,

    Gary

    http://www.learnfreenas.com

  2. 2 Albert

    Hi Gary, thanks for commenting. I wasn’t able to get the cron job on FreeNAS to work for some reason. Its strange, because I was able to confirm the cron job was getting triggered, but the anonftpsync was failing.

    As an alternative, I decided to use another machine to manage the cron job, so I now have two debian mirrors, but that’s fine with me!

Leave a Reply