Installing TorrentFlux on a pfSense box

  • Hello,

    Has anyone done this before? Surely it can't be too hard. TorrentFlux requires php, mysql and a web server. PHP and Web Server are already included with pfSense. So can I just install mysql and then go about installing TorrentFlux or is it not quite that simple?

    I've just had a quick look and I can't even find wwwroot  ???

    Any help appreciated!

  • Remember to search first…...........

    The Sum of All Fears or the general opinion in this forum,6.msg25763.html#msg25763

  • PFSense 1.2RC3 the main web directory:

    PFSense Packages are located in:

    Include directory:

    After enabling shell access you can use SFTP for convenient access to the files.

    P.S. Adding MySQL to the PFSense firewall is not recommended for a firewall.

  • Well, finally, a topic that's relating to something I'm doing that's not locked!  ::)

    I spent this entire day, all 12 hours awake (and plenty more last night) figuring out how to multi-purpose my pfSense box. I need a powerful system to cache the internet for me and a handful of other wireless users in my apartment complex with Squid, I don't need enterprise-class security on an uberhardened firewall. It's getting warm again, and I need to turn off some room-heaters (computers) during the night. Sure would be nice to give my desktop some downtime for the first time since I built it back in December.

    So, for starters, a torrent box. I started with the pfSense developer platform, which was totally b0rked out of the box since no longer seems to stock packages-6.2-stable with a "Latest" folder (if a packages-6.2-stable folder at all). I shoehorned in there and got it to "build" properly. Overnight, I let it crank away at compiling and whatnot, and woke up to a message saying an ISO was built. Perplexed, I burned and booted that ISO, and found it was nothing more than, perhaps, a smaller, customized pfSense (standard) ISO. Anyone shed some light on that for me?

    I found, again, my frustrating lack of a proper shell (csh needs to die, or at least get a better default prompt), and lack of Man pages. pkg_add'ing bash solved the shell problem, but I still have to "8" and "bash" in order to get to a usable system prompt over SSH. I first built MySQL 5.1 from the ports system, which went smoothly. That was pretty much the only "smooth" I've had so far.

    I then had to figure out how to get MySQL support into PHP. Knowing nothing about how the files were laid out, I went and recompiled PHP from the ports as well, then the PHP extensions. I don't understand why I can't get a similar "unified" PHP build like pfSense seemed to have - instead, I got two small PHP binaries and a handful of extensions in a folder that took me another half-hour or so to find and figure out. Doesn't help that the LigHTTPd configuration file was named "lighty-webConfigurator.conf", instead of the default (lighttpd.conf?). But I figured it out. It ALSO doesn't help that the pfSense guys opted to rename the FastCGI version of PHP (typically named "php-cgi") to straight "php", so when I recompiled PHP, it threw the CLI version of PHP as "php" and threw LigHTTPd a curve. Talk about a pain.

    In the end, I actually ended up just scrapping it all, using the base "php" binary from pfSense that I recovered from that ISO, and edited the php.ini file to add the extension. So far, so good.

    It's freaking SLOW. This entire system is slow as molasses. Top shows zero activity until I request a PHP page through the pfSense web interface, or TorrentFlux, which is installed in a sub-folder in the pfSense web interface folder. When I request a PHP page, Top shows one of two PHP processes reaching 30, 40% CPU usage (?) and slowly crawling back down. I think the slow performance may have something to do with a line I found scrolling by the boot process: "WITNESS option enabled, expect reduced performance". I have no idea what that is, but I know it says to expect reduced performance (on a 600MHz Athlon? How much slower can it–... I WON'T ASK!). So my last burning question is, how do I disable that?

    I managed to get TorrentFlux running reliably on it, and Samba to get the files in and out in a convenient, fast, and easy to manipulate fashion. I shouldn't need to worry about incoming issues as long as the services are all secured - TorrentFlux, Samba, and MySQL all have logins that anyone from the land of the internet wouldn't even bother trying to figure out.

    Let me tell you, I've learned a lot about FreeBSD in the past several hours. It's not exactly SENSIBLE information (I still don't understand the logic behind the placement of files in that file system), but it's a good start.

    (Now, excuse me while I Ctrl+Z this discussion...)

    edit: Hm. After closing the tab with the pfSense web config site in it, TorrentFlux started running much quicker, as did the whole system. Maybe there's something going on in there that's knocking each other out?

  • Remove the WITNESS option from your kernel, rebuild and reinstall kernel.

    The current configuration file can be found from the last field of "uname -v".

Log in to reply