LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2010, 02:44 PM   #1
dmapache
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Exclamation iptables Unknown error 18446744073709551615


Hello, I donīt speak English very well..

I have problems with iptables :

[root@server7 ~]# iptables -I INPUT -p tcp --syn -m recent --set
[root@server7 ~]# iptables -I INPUT -p tcp --syn -m recent --update --seconds 10 --hitcount 30 -j DROP
iptables: Unknown error 18446744073709551615
[root@server7 ~]#

I need stopping a SYN ddos attack... but iptable rule don't work...

Thanks for you answers
 
Old 04-11-2010, 03:36 PM   #2
troop
Member
 
Registered: Feb 2010
Distribution: gentoo, arch, fedora, freebsd
Posts: 379

Rep: Reputation: 97
Post here output of
Code:
lsmod | grep ipt

Last edited by troop; 04-11-2010 at 03:43 PM.
 
Old 04-11-2010, 03:50 PM   #3
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Yes, you probably do not have "recent" extension.
I do not have it either. Look like normal iptables doesn't have it.

EDIT.
I have it, module is called ipt_recent.

Do in root console:
modinfo ipt_recent

you should get description.
Also you can check in:
/lib/modules/<your-kernel-pae/kernel/net/ipv4/netfilter/ipt_recent.ko

Last edited by nimnull22; 04-11-2010 at 04:07 PM.
 
Old 04-11-2010, 04:04 PM   #4
dmapache
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by troop View Post
Post here output of
Code:
lsmod | grep ipt
ipt_recent 42969 0
iptable_filter 36161 0
ip_tables 55201 1 iptable_filter
x_tables 50505 4 ipt_recent,xt_state,xt_tcpudp,ip_tables
 
Old 04-11-2010, 04:20 PM   #5
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
I think you should write rule like:
iptables -I INPUT -p tcp --tcp-flags SYN SYN -m recent --set
and second one as well.

Edit, but may be it is not correct. Actually "--syn" should works also.
You can try to use -A = add, but your rule wont be first in INPUT chain.

Or you can try to write like:
--tcp-flags ALL SYN
--tcp-flags SYN,RST,ACK,FIN SYN

It may be more correct, because you need to filter only "syn" without anything else.

Last edited by nimnull22; 04-11-2010 at 04:40 PM.
 
Old 04-12-2010, 01:54 AM   #6
dmapache
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nimnull22 View Post
I think you should write rule like:
iptables -I INPUT -p tcp --tcp-flags SYN SYN -m recent --set
and second one as well.

Edit, but may be it is not correct. Actually "--syn" should works also.
You can try to use -A = add, but your rule wont be first in INPUT chain.

Or you can try to write like:
--tcp-flags ALL SYN
--tcp-flags SYN,RST,ACK,FIN SYN

It may be more correct, because you need to filter only "syn" without anything else.
T_T

Code:
[root@server7 ~]# iptables -I INPUT -p tcp --tcp-flags ALL SYN -m recent --update --seconds 10 --hitcount 30 -j DROP
iptables: Unknown error 18446744073709551615
[root@server7 ~]# iptables -A INPUT -p tcp --tcp-flags ALL SYN -m recent --update --seconds 10 --hitcount 30 -j DROP
iptables: Unknown error 18446744073709551615
 
Old 04-12-2010, 02:21 AM   #7
dmapache
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I was reading about iptables and Recent and this module would remain as to whether this right?

Code:
iptables -N SYNSCAN
iptables -A INPUT -p tcp --tcp-flags ALL SYN -j SYNSCAN
iptables -A SYNSCAN -m recent --set --name SYNFLOOD
iptables -A SYNSCAN -m recent --update --seconds 10 --hitcount 20 --name SYNFLOOD -j DROP
 
Old 04-12-2010, 11:54 AM   #8
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
It will do the same thing.

Do you have error?
 
Old 09-22-2010, 08:36 AM   #9
aswen
LQ Newbie
 
Registered: May 2005
Location: NL, Groenlo
Distribution: RHEL/CentOS/Debian/FreeBSD
Posts: 3

Rep: Reputation: 0
hey, found the problem:
the amount of seconds and count is not correct. (try --seconds 60 --hitcount 4 and it will work)
yet, that might not do what you want.... (you want 20 per 10 seconds) so we have to find the limits of this module...

have to find correct docu, will post when I found it

the "official" docu mentioned in de iptables man (8) page at http://snowman.net/projects/ipt_recent/ does not tell me anything about the min and max values... (site not updated since 2007...)

sent mail to Sfrost. will notify you opun response

Last edited by aswen; 09-22-2010 at 09:15 AM.
 
Old 05-17-2012, 04:47 AM   #10
csampath
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Smile

I am using iptables v1.3.5, there Maximum 20 connections per minute is allowed.
 
Old 05-18-2012, 03:15 AM   #11
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It is doubtful the participants of this thread will read your addition to a two year old post. Please check the date before responding.
 
Old 05-18-2012, 04:32 AM   #12
csampath
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Its for the new participants only.

My post was not for 2 years old participants. It is for the new participants who search for the error will get to know the information.
 
Old 05-18-2012, 02:33 PM   #13
aswen
LQ Newbie
 
Registered: May 2005
Location: NL, Groenlo
Distribution: RHEL/CentOS/Debian/FreeBSD
Posts: 3

Rep: Reputation: 0
offtopic: thanks for the reply csampath!

Hi, My last post to this topic was a while ago. however, I received an email indicating that one has responded. for me this was interesting. so, thanks csampath!

I've got one more question: did you find any docu describing the min/max values for ipt_recent?

best regards,
Alex
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compilation error : /tmp/cczC6Kc3.s:7368: Error: unknown pseudo-op: `.ltorg' nankie Red Hat 0 08-19-2008 10:15 AM
IPtables failing to load: unknown ruleset bureado Linux - Software 3 06-19-2008 10:32 PM
iptables: Unknown error 4294967295 karimasif Linux - Kernel 2 08-30-2007 04:26 AM
iptables - dport unknown arg mousi Linux - Networking 3 03-21-2007 06:44 PM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration