Thanks to JFM it would appear that you can now run this on Clarkconnect V3 without too much hassle, here is how.
First you are going to need to download a few packages.
You'll need to type the following
apt-get install cc-devel
This gets you the compiler you need. You also need libipq but this is not supplied with Clarkconnect. You can download the iptables 1.2.9 package from here
http://ftp.netfilter.org/pub/iptables/
You'll need 1.2.9 so download it, unpack it, and install the libraries
tar xvf tables1.2.9.tar
cd iptables-1.2.9/
make install-devel
This will install the libipq stuff you need. Now you are set to compile the peerguardian files. Go to where you downloaded 1.5beta(or whatever you use) make/install it.
I needed a quick start script so i made one in /bin called startpeerguardian contents are
Code:
#!/bin/sh
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
You'll need a PG.conf file too, I got the tarball of peerguardian, and it has one in it you can use, the only thing i've done is add a few ports to it and set the path to the blockfile.
You can can test its all working right by running peerguardian (using above script for example), and then grep for an ip (you want to test) in the blockfile, and then ping that IP. Also examine your log file to see that packets for that ip are dropped (and logged).
If you have pgtext open, you'll see the packets getting dropped. If you get a ping response, it hasnt worked.
There is a sticky at the top which outlines the rules and order of execution, in my case its a problem and I have to add some forwarding rules first. (JFM is this explanation right?).
I'll try and answer any questions you might have.
Good luck.