In Linux
9Apr 09

This is how to create a high-available gateway/firewall with ClarkConnect http://www.clarkconnect.com and the http://www.linuxvirtualserver.org/ solution.

Two ClarkConnect systems will be installed: one master server and one slave server. The master and slave run in parallel Only one of the systems is “live” If the master fails, the slave will automatically take over If the slave fails, well… the master is still doing its job

http://www.clarkconnect.com/docs/Howtos_-_Clustering_with_LVS



I have just added Torrent Flux to my ClarkConnect Server (ver 4.2).

It now has given me a web-based system for managing bit torrent file transfers. Letting me manage all aspects of torrent transfers through the secure web interface from anywhere you can get Internet access! It even lets you set your system up to subscribe to (& auto-download) rss torrent feeds and start your transfers while you’re away (during the night, as other transfers finish, or however else you like if you write script!).

The transfer themselves are performed on top of the Bit Tornado package, TorrentFlux provides a web interface for these scripts and the ability to manage multiple transfers, users and even protocols (receive completed files via http) all from the web gui.

Install is as follows

I will be using torrentflux-b4rt. It installed with alot less greif than the main version.

You will need a working installation of php and mysqlwhich you should have running on your server, follow the instructions to upgrade php and install php-cli should you need to, using the php5 repository listed here
http://www.clarkconnect.com/developer/betas/20070420.php

download and untar the torrentflux tarball, using Code:

cd /var/tmp

wget http://gunblade.fakap.net/doc/torrentfl … a2.tar.bz2 (this mirror actually works, I had a lot of trouble with the downloads fromthe actual site… weird??)

tar jvxf torrentflux-b4rt_1.0-beta2.tar.bz2

move the html directory to your website root, like so Code:

cd torrentflux-b4rt

Rename the file to what you like, I used torrentfluxb4rt (remember it)

mv html /var/www/html/torrentfluxb4rt

point your browser at http://yourCCIPaddress/torrentfluxb4rt/setup.php
follow through the install process, add in a name for the mysql server and a username and password, and tick the box that says create table. The setup will create the database as well as fill it so no need to create one through phpmyadmin or mysql.

You will need to make the config directory writeable, like so:
Code:

chmod 777 /var/www/html/torrentfluxb4rt/inc/config

The setup should finish, it may complain about some missing commands for optional components but these are fine.

Delete or rename the setup.php Code:

rm /var/www/html/torrentfluxb4rt/setup.php
or
mv /var/www/html/torrentfluxb4rt/setup.php /var/www/html/torrentfluxb4rt/has_setup.php

Point your browser at

http://yourCCIPaddress/torrentfluxb4rt/

and login. The first time you login will be your admin account so remember your password!

Your now ready to download torrents to your hearts content !!

Have fun :mrgreen:



I had issues with my adsl router so I installed the DynDNS update client “ddclient” on my CC server. I have my CC server set up in standalone mode, not gateway mode, and it still works fine.

Obviously you will need a DynDNS account and a Linux server. I can also say that this method works on an Ubuntu and SME server install.

So lets start:

ssh into you server using your favourite ssh client and enter the following:

Code:



$ wget http://downloads.sourceforge.net/ddclient/ddclient-3.7.3.tar.gz
$ tar zxvf ddclient-3.7.3.tar.gz
$ cd ddclient*
$ cp ddclient /usr/sbin
$ mkdir /etc/ddclient

The config to ddclient is straight forward and simple,

but why not get DynDNS to do it for you:

Log into DynDNS.com > Support > DNS Tools > Update Client Configurator>
Have it create the config text for ddclient.

Copy this text onto clipboard. Then, in the Putty window, do:

Code:


$ nano /etc/ddclient/ddclient.conf

Paste the clipboard, (shift + insert) find the DynDNS account password replace the ##password##,
Save with crtl+o then <enter>
Exit with crtl+x.

Then type:

Code:


$ ddclient -daemon=0 -query
$ cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
$ /sbin/chkconfig --add ddclient

Now use winscp and create the folder: /var/cache/ddclient
and test with:

Code:

ddclient -daemon=0 -debug -verbose -noquiet

The output from this will tell you all you need to know

There you go your regular updater for a Dynamic IP address


Subscribe to RSS

  • Tag Cloud

  • Categories

  • Recent Posts

  • Login/Register

Syndicate