You are not logged in.

#1 2006-04-29 13:27:29

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

[IPTABLES] Strange error in my firewall script //SOLVED

Here is my (humble) script :

#Flush
iptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD

#Default policy
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT 

#Loopback interface
iptables -A INPUT -i lo -j ACCEPT

#We can ping us
iptables -A INPUT -i eth0 -p icmp -j ACCEPT


iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

The last line generates this strange error :

iptables: Unknown error 4294967295

Does anyone figure out what my mistake is or is this a bug(less likely) ?

EDIT : problem is solved

Cause :
'state match' module was not built...

Solution :
I rebuilt the module.

Thanks for advice anyway, that's what led me to this.

If only iptables had been more verbose than error ####### , I could have figured it out myself

Offline

#2 2006-04-29 16:40:52

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [IPTABLES] Strange error in my firewall script //SOLVED

I would suspect it is your last rule. It doesn't have any source or destination delimiters.
Try commenting out that line, and rerun the script..just to see.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

Board footer

Powered by FluxBB