LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-27-2011, 10:55 PM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 232

Rep: Reputation: 8
Iptables read at application level?


Im reading this tutorial that is old(kernel 2.4) for iptables. It states that iptables should not be read at the application level of the TCP model because of packet boundaries. Does this still hold true today?
 
Old 03-28-2011, 04:26 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by dman777 View Post
Im reading this tutorial that is old(kernel 2.4) for iptables. It states that...
It is difficult to comment in detail if you don't say a bit more about the tutorial (a link?), or the context in which the statement is made....however...

Why not read a more up-to-date tutorial?
http://iptables-tutorial.frozentux.net/
Or is there some reason that kernel 2.4 is what you need for your application?

Quote:
Originally Posted by dman777 View Post
It states that iptables should not be read at the application level of the TCP model because of packet boundaries...
I think what this is about (and, without context, I'm having to guess a bit) is that TCP packets can arrive fragmented, and if security depends on detecting, say, a particular string, either accidentally or with malice aforethought, packets can be fragmented such that the target string only arrives in parts and cannot therefore be detected unless the packets are re-assembled before the string detection occurs.

You can imagine a piece of malware called 'badstuff.exe', and you might be very worried about that. You could then come up with a scheme that depended on detecting the string 'badstuff.exe', but that could arrive at the firewall as a packet containing 'bads' and another with 'tuff.exe', and they would both seem to be innocent packets.

Quote:
Originally Posted by dman777 View Post
Does this still hold true today?
Don't know about ipv6, but that's the only thing that I could see changing the situation, in principle, although, theoretically, you may be able to do stuff in network arch in order to get around the problem, and it depends on context whether that could be a solution to your problem. If, for example, your problem is home web browsing, you probably don't want to buy a Cisco IOS box (in the interests of fairness and balance, I have to say that other, high quality, but overpriced, networking hardware is available) in order to cure the problem. And I'm not even completely sure that it is would be a complete cure.

Or you could do your stuff at some point in the networking model (see the iso model, which I'd bet has a wikipedia page) at which packets are re-assembled...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need to write a Shell Script for Zabbix Application Level Clustering vinaytp Linux - Newbie 4 08-17-2010 06:37 AM
Setting up an Ink-Level monitoring application that will work! minnymouse Debian 7 03-28-2009 12:56 PM
Are application level memory managers a thing of the past? hsanson Programming 1 06-11-2008 11:51 AM
Control at application level slugger Linux - Security 1 04-06-2006 05:01 PM
No packets received at application-level without a default gateway urban_olofsson Linux - Networking 3 10-29-2004 08:51 AM

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

All times are GMT -5. The time now is 05:55 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