guarddog is still missing in Ubuntu… This article will outline required steps to install guarddog in Ubuntu Oneiric 11.10/Precise 12.04 and get it working.
To get guarddog installed in Ubuntu Oneiric 11.10 you need the following packages:
x64
x32
Note, these packages are you not required if you followed my previous article and have restored guarddog in Ubuntu Natty 11.04.
Next, if you try to use guarddog in Ubuntu Oneiric 11.10, it will say «ERROR Can't determine the firewall command! (Is ipchains or iptables installed?)» on trying to apply your firewall configuration.
Relaunch guarddog from terminal using "sudo guarddog" command — you will notice the following dump in the console:
# Check for iptables support. if [ -e /proc/sys/kernel/osrelease ]; then KERNEL_VERSION=`sed "s/^\([0-9][0-9]*\.[0-9][0-9]*\).*\$/\1/" < /proc/sys/kernel/osrelease` if [ $KERNEL_VERSION == "2.6" ]; then KERNEL_VERSION="2.4" fi; if [ $KERNEL_VERSION == "2.5" ]; then KERNEL_VERSION="2.4" fi; if [ $KERNEL_VERSION == "2.4" ]; then if [ -e /sbin/iptables ]; then FILTERSYS=2 fi; if [ -e /usr/sbin/iptables ]; then FILTERSYS=2 fi; if [ -e /usr/local/sbin/iptables ]; then FILTERSYS=2 fi; fi; fi; if [ $FILTERSYS -eq 0 ]; then echo "ERROR Can't determine the firewall command! (Is ipchains or iptables installed?)" fi;
Quite obviously this code is: a) not handling new kernel versioning scheme b) is essentially not needed (does nothing).
To fix this you will need to recompile guarddog:
Once done, you will have fully functional guarddog in Ubuntu Oneiric 11.10.
P. S.
If you do not want to take all the steps from above, you can use the packages I have built:
Comments
Post new comment