>From the man page
Protocol all will match with all protocols and is taken as default when this
option is omitted.

So try removing the -p tcp and see if that fixes it.

Tony Heal
Pace Systems Group, Inc.
800-624-5999
[EMAIL PROTECTED]

-----Original Message-----
From: Philip Mak [mailto:[EMAIL PROTECTED] 
Sent: Saturday, March 11, 2006 8:53 PM
To: debian-user@lists.debian.org
Subject: iptables wrong version?

I am trying to ban an IP address from my server (*.*.*.* is a real
IP):

[EMAIL PROTECTED] root]# ipchains -A INPUT --source *.*.*.* -p tcp -j DROP
ipchains: Protocol not available
[EMAIL PROTECTED] root]# iptables -A INPUT --source *.*.*.* -p tcp -j DROP      
 
iptables v1.2.11: can't initialize iptables table `filter': Module is wrong
version
Perhaps iptables or your kernel needs to be upgraded.
[EMAIL PROTECTED] root]# uname -a
Linux naga.aaanime.net 2.6.8-11-amd64-k8 #1 Sun Oct 2 21:26:54 UTC 2005
x86_64 GNU/Linux
[EMAIL PROTECTED] root]# apt-get install iptables
Reading Package Lists... Done
Building Dependency Tree... Done
iptables is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

Does anyone know what I'm doing wrong?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to