Networking Forums

Networking Forums > Computer Networking > Linux Networking > packet filtering and stateful inspection?

Reply
Thread Tools Display Modes

packet filtering and stateful inspection?

 
 
somez72
Guest
Posts: n/a

 
      02-25-2004, 06:59 AM
Dear.
what is packet filtering and stateful inspection in linux?
Could some one can give me clear explain... how they are diffrent?
or Do some one have easy reference site for it?

And does linux firewall support stateful inspection?

Have a day.
Thank you.


 
Reply With Quote
 
 
 
 
Cameron Kerr
Guest
Posts: n/a

 
      02-25-2004, 08:25 AM
somez72 <(E-Mail Removed)> wrote:
> Dear.
> what is packet filtering and stateful inspection in linux?
> Could some one can give me clear explain... how they are diffrent?


Packet filtering is a form of firewalling. It's just looking at the
headers of packets (usually source and destination addresses and ports)
and deciding whether to let that packet through. In a non-stateful
firewall, to allow a SSH connection through my firewall, from inside to
outside, I would have to add two rules

inside -> outside:
accept TCP packets with a destination port of 22
outside -> inside:
accept TCP packets with a source port of 22

The closure of this isn't very accurate however. There are a number of
packets that can get through. For instance, a packet could get through,
even if the SYN packet (that would be sent at the start of the
connection) has not been seen. This allows a fragment attack.

With a stateful firewall, we only need to match one packet for TCP
connections, the SYN packet. We also include a special rule near the
start of the firewall, that tells the (statefull) firewall to let
through any packets that are part of (or related to) an already accepted
connection. Our firewall becomes more like the following.

(This is a common rule, at the start of the firewall)
let through packets that are part of an established connection.
inside -> outside:
accept TCP SYN packets with a destination port of 22.

> or Do some one have easy reference site for it?


www.netfilter.org contains essential reading material on Linux
firewalling.

> And does linux firewall support stateful inspection?


Yes, as of Linux 2.4. This is provided by iptables.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
deep packet inspection naush Linux Networking 0 10-07-2011 11:58 AM
stateful filtering of ipv6 Christoph Scheurer Linux Networking 1 07-09-2006 09:51 PM
Is it possible to block Viruses using SPI (Stateful packet inspection) using Linux box GS Linux Networking 1 06-17-2006 04:01 PM
Wireless NIC running Linux that offers stateful inspection the.loquitur@gmail.com Wireless Internet 3 03-15-2006 10:04 PM
Wireless NIC running Linux that offers stateful inspection the.loquitur@gmail.com Linux Networking 3 03-15-2006 10:04 PM



1 2 3 4 5 6 7 8 9 10 11