

Decided to post info.Merlin8000 wrote:Exact same problem here - iptables itself works when I try to run any of the commands here it complains about a state not being specified.
Code: Select all
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r0, 2.6.14-hardened-r7 i686)
=================================================================
System uname: 2.6.14-hardened-r7 i686 Celeron (Coppermine)
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/service"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks maketest sandbox sfperms strict test userpriv"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://chod.cwru.edu/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit a52 acl aim apache2 apm avi bash-completion berkdb bitmap-fonts bootsplash bzip2 calendar cgi chroot cli crypt curl dba dri eds emboss encode exif expat extensions fam fastcgi ffmpeg flac foomaticdb fortran gd gdbm gg gif gmp gpm gstreamer hardened hardenedphp icq idn imagemagick imap imlib ipv6 irc isdnlog jabber javascript jpeg kde lcms ldap libclamav libg++ libwww lj mad mcal mhash mikmod ming mmx mng motif mp3 mpeg msn mysql ncurses network nls nptl offensive ogg oscar pam pcre pdflib perl php png pppd python quicktime readline reflection rrdtool rss samba sensord session sftplogging slang spell spl ssl symlink tcpd test threads tiff tools truetype truetype-fonts type1-fonts udev usb vhosts virus-scan vorbis winbind wmf xml xml2 xmlrpc xorg xsl xvid yahoo zip zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS

Merlin8000 wrote:Decided to post info.Merlin8000 wrote:Exact same problem here - iptables itself works when I try to run any of the commands here it complains about a state not being specified.
This started on reboot.
My system had been up 113 days prior to reboot, reboot was due to power outage.
I also tried hardened-sources 2.6.14-r6 and got the same results
The last kernel I was running that this worked under was hardened-sources 2.6.14-r3.
I will try rebooting with that kernel to see if the kernel is the culprit.
Code: Select all
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r0, 2.6.14-hardened-r7 i686) ================================================================= System uname: 2.6.14-hardened-r7 i686 Celeron (Coppermine) Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/service" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks maketest sandbox sfperms strict test userpriv" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://chod.cwru.edu/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 16bit a52 acl aim apache2 apm avi bash-completion berkdb bitmap-fonts bootsplash bzip2 calendar cgi chroot cli crypt curl dba dri eds emboss encode exif expat extensions fam fastcgi ffmpeg flac foomaticdb fortran gd gdbm gg gif gmp gpm gstreamer hardened hardenedphp icq idn imagemagick imap imlib ipv6 irc isdnlog jabber javascript jpeg kde lcms ldap libclamav libg++ libwww lj mad mcal mhash mikmod ming mmx mng motif mp3 mpeg msn mysql ncurses network nls nptl offensive ogg oscar pam pcre pdflib perl php png pppd python quicktime readline reflection rrdtool rss samba sensord session sftplogging slang spell spl ssl symlink tcpd test threads tiff tools truetype truetype-fonts type1-fonts udev usb vhosts virus-scan vorbis winbind wmf xml xml2 xmlrpc xorg xsl xvid yahoo zip zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS


Code: Select all
-m state --state NEW,ESTABLISHEDI have no idea what would cause that error.. glibc update perhaps? Did you try rebuilding firehol? Might set things back in order, might not,....worth a try, firehol is fantastic!/usr/sbin/firehol: line 2354: printf: write error: Success
I've noted the same thing (--state WHATEVER not included) here. Even went through the trouble of reading through /usr/sbin/firehol to see if the command is truncated somewhere. Total needle in a haystack, though. Rebuilding firehol does not do it.DNAspark99 wrote:a bit odd - the errors appear to be a result of an incomplete argument for the 'state' module of iptables, usually '--state' follows with an argument about what _type_ of state the rule should apply to...
Code: Select all
-m state --state NEW,ESTABLISHED
so, I'd disregard the firehol errors. They're a byproduct of an alternate issue. For some reason, firehol is not able to construct a proper/complete iptables command out of the config file commands.
It looks to me like the catalyst for all these errors is:I have no idea what would cause that error.. glibc update perhaps? Did you try rebuilding firehol? Might set things back in order, might not,....worth a try, firehol is fantastic!/usr/sbin/firehol: line 2354: printf: write error: Success
The problem is reported as http://bugs.gentoo.org/show_bug.cgi?id=139526 in Gentoo, please try upgrading to p17 of bash to see if that fixes the problem. I have p17 installed and don't see this problem right now.erikm wrote:Ok, problem solved. It is bash that is the culprit: Downgrading from 3.1_p16 to 3.0-r12 solves the firehol mess. Wonder whether to file as a bash or firehol bug, though...?