Is Guarddog incompatible with Kernel v3.2.0?

Discussion in 'Linux Networking' started by Ant, Jan 3, 2013.

  1. Ant

    Ant Guest

    Hello.

    I think my Guarddog program is not running/working anymore (e.g., no
    blockages shown in dmesg logs) after upgrading Kernel v2.6.32 to v3.2.0)
    recently. I tried to check its frontend GUI software as root/sudo, but
    it failed:

    $ guarddog -v
    Qt: 3.3.8b
    KDE: 3.5.10
    Guarddog: 2.6.0

    # guarddog
    No protocol specified
    guarddog: cannot connect to X server :0.0
    ICE default IO error handler doing an exit(), pid = 31229, errno = 11

    It works with regular user, but I don't see my custom settings and
    change anything. Is it incompatible with the latest Kernel version? If
    so, then is there a replacement for it?

    Thank you in advance. :)
    --
    Happy New Year! <|:) Quote of the Week: "Ants never sleep." --Ralph Waldo Emerson, poet
    /\___/\ Ant(Dude) @ http://antfarm.home.dhs.org (Personal Web Site)
    / /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
    | |o o| |
    \ _ / Please nuke ANT if replying by e-mail. If crediting,
    ( ) then please kindly use Ant nickname and AQFL URL/link.
     
    Ant, Jan 3, 2013
    #1
    1. Advertisements

  2. Ant

    Noob Guest

    NB: According to its web site, Guarddog was last updated in
    March 2007. Not sure how much support you can expect.

    http://www.simonzone.com/software/guarddog/
     
    Noob, Jan 3, 2013
    #2
    1. Advertisements

  3. Ant

    JohnnyLately Guest

    ["Followup-To:" header set to comp.os.linux.setup.]
    You need to patch two files in src
    and recompile guarddog to use it with that kernel.
    The guarddog.cpp and guarddogdoc.cpp files must be edited/patched.

    Look for the sections in both files that look like below:
    (about line 2910 in guarddog.cpp and about line 603 in guarddogdoc.cpp)

    # 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;

    Download source if you have to.
    Edit both files to look like below:
    (save changes)
    Then recompile guarddog.
    And install.

    Take a look at VuurMuur and Arno's firewall,
    because Guarddog is not being maintained.
    This hack will keep you going for a bit till
    you can familarize yourself with a different option.

    # 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 == "3.4" ]; then
    KERNEL_VERSION="2.4"
    fi;
    if [ $KERNEL_VERSION == "3.3" ]; then
    KERNEL_VERSION="2.4"
    fi;
    if [ $KERNEL_VERSION == "3.2" ]; then
    KERNEL_VERSION="2.4"
    fi;
    if [ $KERNEL_VERSION == "3.1" ]; then
    KERNEL_VERSION="2.4"
    fi;
    if [ $KERNEL_VERSION == "3.0" ]; then
    KERNEL_VERSION="2.4"
    fi;
    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;
     
    JohnnyLately, Jan 3, 2013
    #3
  4. Ant

    Ant Guest

    I think my Guarddog program is not running/working anymore (e.g., no
    Because it was working fine with Kernel v2.6.32.
    --
    Happy New Year! <|:) Quote of the Week: "Ants never sleep." --Ralph Waldo Emerson, poet
    /\___/\ Ant(Dude) @ http://antfarm.home.dhs.org (Personal Web Site)
    / /\ /\ \ Ant's Quality Foraged Links: http://aqfl.net
    | |o o| |
    \ _ / Please nuke ANT if replying by e-mail. If crediting,
    ( ) then please kindly use Ant nickname and AQFL URL/link.
     
    Ant, Jan 3, 2013
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.