IPCop 1.4 and Dan's Guardian - HOWTO From Source

Eugene Koontz (ekoontz@hiro-tan.org)

  1. Obtain prerequisite : a x86 Linux box.

    You need a Linux PC with the standard development tools available : gcc, make, etc. Just an IPCop box won't do it - you need a full-fledged distribution like Debian, Gentoo, Fedora, Mandrake, whatever you prefer.
  2. Download Dan's Guardian source

    Get DansGuardian-2.6.1-13.source.tar.gz from the IPCop mirror list (look in the "Stable" directory) and save it to /tmp.

  3. Build Dan's Guardian

    In a shell do :
    cd /tmp
    tar xfz DansGuardian-2.6.1-13.source.tar.gz
    cd DansGuardian-2.6.1
    ./configure && make
            
    After this, you will have a binary executable called "dansguardian" in your /tmp/DansGuardian-2.6.1 directory.
  4. Create dageek directory

    In a shell do :

    mkdir /tmp/dageek
            
  5. Download and unpack dageek's dansguardian

    We will use our own self-built binary of dansguardian along with dageek's custom IPCop-specific scripts, which we'll get in the following tarball.

    Get this tarball from DaGeek's site (Here's a local copy, in case DaGeek's site is not accessible) and save it to /tmp/dageek, and in a shell do :

    cd /tmp/dageek
    tar xfz dansguardian.tar.gz
    tar xfz dg-2.6.1.tar.gz
    rm *.tar.gz
    

    Note that we "rm" the existing tar.gz's in the above step - we don't need them since since we'll create new ones.

  6. Copy new binary dansguardian to dageek directory

    In a shell do :

    cp /tmp/DansGuardian-2.6.1/dansguardian /tmp/dageek
    
    Note that this overwrites the existing, old version of the dansguardian binary that is packaged with DaGeek's tar.gz.
  7. Re-create tarball of dansguardian, ready for IPCop use.

    In a shell do :
    cd /tmp/dageek
    mv information setup ..
    tar cfz dg-2.6.1.tar.gz .
    rm -rf `find -mindepth 1 -not -name dg-2.6.1.tar.gz`
    mv ../information ../setup .
    tar cfz /tmp/dansguardian.tar.gz .
    
  8. Follow my directions to install /tmp/dansguardian.tar.gz on a new IPCop install

    After Steps 1 through 7, you have a file : /tmp/dansguardian.tar.gz which you can use as the "Dan's Guardian for IPCop 1.4" in Step 1 of those directions.

    The second file mentioned in Step 1 of those directions, "Dan's Guardian Gui for IPCop 1.4" is a source-only tar.gz, and so there's no need to build anything for it; simply use it as is. It may be helpful to compare this verison of the Dan's Guardian Gui with DaGeek's version.


Last modified: Thu Dec 30 02:32:46 PST 2004
    $Id: ipcop_and_dg_source.html,v 1.4 2004/05/04 09:00:10 ekoontz Exp $