LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-29-2004, 04:37 PM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
tcp packets


ok i got this error when i was running my nessus security check. they call it a general tcp vulnerability:

***************************************************
The remote host does not discard TCP SYN packets which
have the FIN flag set.

Depending on the kind of firewall you are using, an
attacker may use this flaw to bypass its rules.

See also : http://archives.neohapsis.com/archiv...2-10/0266.html
http://www.kb.cert.org/vuls/id/464113

Solution : Contact your vendor for a patch
***************************************************


i'm not really sure what to do about this. at the moment i'm running running ****. is this just the way my kernel handles packets? is there a danger? is there something i should do in ipchains to make sure certain flags are up before excepting a rejecting/accepting?

what exactly is the problem. if anyone has any good background with this stuff or has an idea. i'd appreciate. thnx
 
Old 04-29-2004, 05:36 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It's a good practice to drop packets with strange (incorrect) flag combination. Your firewall doesn't do it. It'd be a good idea to add such functionality, but it's not a must-have. There's a danger, but not very big.
 
Old 04-30-2004, 07:35 AM   #3
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
how do i know if mine are strange? at the moment ipchains doesn't reference any kind of reject/accept -ing based on flags. what exactly should i be looking for? what exactly should i be accepting or rejecting?
 
Old 04-30-2004, 08:25 AM   #4
Matt Collier
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 80

Rep: Reputation: 15
iptables -A INPUT -p tcp --tcp-flags SYN FIN -j DROP

should drop any SYN packets with the FIN flag set
 
Old 04-30-2004, 11:00 AM   #5
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
got anything in ipchains.......i know it's not state...but it'll do the same thing right?


what would the entry for that look like?
maybe....

ipchains -A INPUT -p tcp --tcp-flags SYN FIN -j REJECT

Last edited by wedgeworth; 04-30-2004 at 11:01 AM.
 
Old 04-30-2004, 12:19 PM   #6
Matt Collier
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 80

Rep: Reputation: 15
assuming that REJECT is a valid jump target, yeah, though any 2.4 or 2.6 kernels really should use iptables instead of ipchains
 
Old 05-10-2004, 04:09 PM   #7
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
what is the reasoning behind that? that any 2.4 or 2.6 kernels really should use iptables instead of ipchains?
 
Old 05-10-2004, 04:40 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
iptables offer you more, but if you're used to ipchains and they gove you what you need, you don't have to move.
 
  


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
Info on TCP Packets CICA Linux - Networking 15 10-13-2005 02:58 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Only receiving UDP packets, no TCP erevlehdeux Linux - Networking 1 04-23-2004 07:36 PM
How can I distinguish a whole mail from TCP packets sunnyriver Linux - Networking 2 03-22-2004 11:08 PM
tcp/ip packets lackluster Programming 4 07-07-2002 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:59 AM.

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