It seems the best thing for me to do was to get the latest rpm package I did
Rpm -e iptables And Rpm -ivh iptables-1.2.6.20020226.i386.rpm And now it all works.. Thanks for all the replies. It help enormously Regards James > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Juri Haberland > Sent: Tuesday, April 02, 2002 12:44 AM > To: [EMAIL PROTECTED] > Subject: Re: Errors when using iptables-save and -restore > > > "James Austin" <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I am running Kernel 2.4.18, iptbales 1.2.6 and have freeSWAN 1.96 > > Hope this is a common problem here goes. > > > > I enter > > # iptables -t mangle --list > > > > I get back > > > > iptables: libiptc/libip4tc.c:384: do_check: Assertion > > `h->info.valid_hooks == (1 << 0 | 1 << 3)' failed. Aborted > > Yes, this is a FAQ. You are running RedHat. They enebled > debugging in their iptables RPM which has a glitch with > 2.4.18. You have to rebuild your iptables RPM without > debugging: Install the SRPM, search in > /usr/src/redhat/SPECS/iptables.spec for the following lines: > > make COPT_FLAGS="$OPT" LIBDIR=/lib > make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore > > and prepend it with this line: > OPT="$OPT -DNDEBUG" > > (so it should read now: > OPT="$OPT -DNDEBUG" > make COPT_FLAGS="$OPT" LIBDIR=/lib > make COPT_FLAGS="$OPT" LIBDIR=/lib iptables-save iptables-restore > ) > > Now do a 'rpm -ba /usr/src/redhat/SPECS/iptables.spec' > and if its done, reinstall the iptables RPM by either > rpm -e iptables; rpm -Uhv > /usr/src/redhat/RPMS/i386/iptables-1.2.4-2.i386.rpm > or by rpm -Uhv --force > /usr/src/redhat/RPMS/i386/iptables-1.2.4-2.i386.rpm > > > Cheers, > Juri > > -- > Juri Haberland <[EMAIL PROTECTED]> > > > >
