<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Stream4 on Inliniac</title>
    <link>https://inliniac.net/blog/tag/stream4/</link>
    <description>Recent content in Stream4 on Inliniac</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 17 Nov 2007 13:55:38 +0000</lastBuildDate>
    <atom:link href="https://inliniac.net/blog/tag/stream4/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>New Snort_inline TCP window normalization code in SVN</title>
      <link>https://inliniac.net/blog/2007/11/17/new-snort_inline-tcp-window-normalization-code-in-svn/</link>
      <pubDate>Sat, 17 Nov 2007 13:55:38 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/11/17/new-snort_inline-tcp-window-normalization-code-in-svn/</guid>
      <description>&lt;p&gt;A while ago I &lt;a href=&#34;http://www.inliniac.net/blog/2007/09/04/window-scaling-normalization-in-snort_inline-broken-by-design.html&#34;&gt;wrote&lt;/a&gt; about why the TCP window scaling normalization in Snort_inline was broken by design. I also wrote about a new solution I was working on and testing that would be uploaded to SVN soon. I just committed the patch to SVN. What it does is add two new options to stream4:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;norm_window&lt;/strong&gt;: normalize the TCP window (disabled by default). This is to protect Snort_inline from being forced to queue too many packets.&#xA;&lt;strong&gt;max_win_size&lt;/strong&gt;: maximum size of the scaled TCP window. Packets increasing the window beyond the limit are modified.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Snort_inline and out of order packets</title>
      <link>https://inliniac.net/blog/2007/07/30/snort_inline-and-out-of-order-packets/</link>
      <pubDate>Mon, 30 Jul 2007 21:22:56 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/07/30/snort_inline-and-out-of-order-packets/</guid>
      <description>&lt;p&gt;In Snort_inline&amp;rsquo;s stream4 modifications, one of the changes is that out of order TCP packets are treated differently from unmodified stream4. This can cause some new alerts to appear and some unexpected behaviour. So I&amp;rsquo;ll try to explain what happens here.&lt;/p&gt;&#xA;&lt;p&gt;First of all let me explain quickly what out of order packets are. To put it simple, TCP packets are send out by the source host in a specific order but can arrive in a different order at the destination. Packetloss, link saturation, routing issues are among many things that can cause this. A Snort_inline specific issue is that when Snort_inline can&amp;rsquo;t keep up with the packets it needs to process, it will drop packets which causes packetloss. These packets will then have to be resent by the sending host.&lt;/p&gt;</description>
    </item>
    <item>
      <title>TCP Window scaling in Snort_inline</title>
      <link>https://inliniac.net/blog/2007/06/16/tcp-window-scaling-in-snort_inline/</link>
      <pubDate>Fri, 15 Jun 2007 22:04:57 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/06/16/tcp-window-scaling-in-snort_inline/</guid>
      <description>&lt;p&gt;The TCP window field in the TCP header is only 16 bits, so the maximum window size it can handle is only 64kb. A long time ago this was enough, but nowadays it isn&amp;rsquo;t, by far. Luckily, this is something the window scaling option fixes. Window scaling is very common these days. Your pc or laptop probably uses it by default. Snort&amp;rsquo;s stream4 however, does not support it. This means that when tracking and reassembling streams, Snort for most connections has no idea about what data is in window and which is out of window. To make matters worse, the packets that are in window when using wscaling, but appear out of window when the wscaling is not accounted for, are never used in the reassembly process. This makes Snort evadable.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Memory leak fixed in stream4inline</title>
      <link>https://inliniac.net/blog/2007/05/22/memory-leak-fixed-in-stream4inline/</link>
      <pubDate>Tue, 22 May 2007 21:54:17 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/05/22/memory-leak-fixed-in-stream4inline/</guid>
      <description>&lt;p&gt;A few days ago William told me that if he enabled stream4inline on a busy gateway, Snort_inline would consume all memory within hours. The problem went away when disabling stream4inline, so it made sense that the problem would be in there somewhere.&lt;/p&gt;&#xA;&lt;p&gt;The first suspect was the reassembly cache. The reassembly cache is used to keep a per stream copy of the reassembled packet in memory. While being memory expensive, it greatly speeds up the &lt;em&gt;sliding window&lt;/em&gt; stream reassembly process, especially with small packets. The reason for this being the first and primary suspect is that this is the only place where stream4inline code allocates memory. Reviewing the code however, showed no leaks and adding a debug counter to monitor the memory usage also showed that the leak was not in that code.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Differences between Snort and Snort_inline</title>
      <link>https://inliniac.net/blog/2007/05/14/differences-between-snort-and-snort_inline/</link>
      <pubDate>Mon, 14 May 2007 17:05:41 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/05/14/differences-between-snort-and-snort_inline/</guid>
      <description>&lt;p&gt;Every few weeks the same question comes up: what is the difference between Snort in inline mode and Snort_inline. This makes sense, because the Snort_inline documentation and website fail to explain it. In this post I will try to highlight the main differences. In general I can say that we try to develop Snort_inline as a patchset on top of Snort. Snort_inline is focused at improving the &lt;em&gt;inline&lt;/em&gt; part of Snort. Originally of course, Snort&amp;rsquo;s &lt;em&gt;inline&lt;/em&gt; capabilities were developed in the Snort_inline project. With Snort 2.3.0RC1 they were merged into mainline Snort.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Snort_inline updated to 2.6.1.4 in SVN</title>
      <link>https://inliniac.net/blog/2007/04/20/snort_inline-updated-to-2614-in-svn/</link>
      <pubDate>Fri, 20 Apr 2007 16:47:33 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/04/20/snort_inline-updated-to-2614-in-svn/</guid>
      <description>&lt;p&gt;After moving, which went fine, I now finally have some real coding time again. The last week I have been updating and fixing various parts of Snort_inline. The most important change was the update to Snort version 2.6.1.4, which contains security fixes. William also found an issue with the Stream4inline code. The issue was that the memcap that the admin sets to limit the amount of memory used by stream4 wasn&amp;rsquo;t properly enforced.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
