<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Window-Scaling on Inliniac</title>
    <link>https://inliniac.net/blog/tag/window-scaling/</link>
    <description>Recent content in Window-Scaling 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/window-scaling/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>Window scaling normalization in Snort_inline broken by design</title>
      <link>https://inliniac.net/blog/2007/09/04/window-scaling-normalization-in-snort_inline-broken-by-design/</link>
      <pubDate>Tue, 04 Sep 2007 15:51:25 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/09/04/window-scaling-normalization-in-snort_inline-broken-by-design/</guid>
      <description>&lt;p&gt;After debugging some connection problems I found that the wscale normalization concept is flawed. I&amp;rsquo;ll describe here what is wrong with it and then move on to suggest a different solution I&amp;rsquo;m currently testing. The problem I was seeing is that some connections to some webservers stalled without an apparent reason.&lt;/p&gt;&#xA;&lt;p&gt;First a quick reminder of why I originally came up with the wscale normalization. Stream4 originally doesn&amp;rsquo;t look at the window scaling value when determining the TCP window. This causes it to be wrong about the TCP window in about every connection, which is one of the reasons out of window packets are not dropped (this is actually a gaping evasion hole since these packets are not used in stream reassembly). This is why I decided to add window scaling support to the stream4inline extension. This works great and allows the admin to drop out of window packets. There is a problem associated with it though. The maximal window that is possible with wscaling is 1GB. This would mean that Snort_inline would in the worst case have to queue almost 1GB of data in it&amp;rsquo;s buffers for a single stream. To prevent this being used by an attacker to attack Snort_inline, I wanted give the admin the option to set a maximal wscale size.&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>
  </channel>
</rss>
