Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24915 - guarddog fails with iptables and 2.6 Linux kernel
Summary: guarddog fails with iptables and 2.6 Linux kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-20 13:44 UTC by Roger Luethi
Modified: 2003-08-11 12:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Luethi 2003-07-20 13:44:00 UTC
guarddog uses some shell scripting to determine whether to
use ipchains or iptables. The relevant code in /etc/rc.firewall
looks like this:

if [ -e /proc/sys/kernel/osrelease ]; then
  KERNEL_VERSION=`sed "s/^\([0-9][0-9]*\.[0-9][0-9]*\).*\$/\1/" < /proc/sys/kern
el/osrelease`
  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;

Obviously, this doesn't work for the recent 2.6.0-test1 kernel.

Reproducible: Always
Steps to Reproduce:
1. start guarddog
2. set some rules
3. hit "Apply" button

Actual Results:  
ERROR Can't determine the firewall command! (Is ipchains or iptables installed?)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-21 08:41:49 UTC
Hopefully you actually use this, as you commited last few versions Martin.
Comment 2 Roger Luethi 2003-07-29 01:22:16 UTC
It's getting fixed upstream.
Comment 3 Roger Luethi 2003-08-11 01:13:39 UTC
2.1.7 was just released and has it fixed (according to the announcement).
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-08-11 12:31:22 UTC
added, thx