Skip to contentSkip to conversation

Per site de-window-scaling

DISCUSSION Stephen Hemminger 3 participants 3 messages Sep 2, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Is there a simple way with netfilter to do per-site TCP SYN mangling to remove the window scale option? That way sites that have window-scale corrupting firewalls could be blacklisted.

#1 lore raw
Quoted 3 lines · On Thu, 2 Sep 2004 12:01:44 -0700 Stephen Hemminger <[email protected]> wrote:

Is there a simple way with netfilter to do per-site TCP SYN mangling to remove the window scale option? That way sites that have window-scale corrupting firewalls could be blacklisted.

We could make this a routing metric, RTAX_MAX_WINDOW or something.

#2 lore raw
In reply to Stephen Hemminger
Quoted 3 lines · Stephen Hemminger

Is there a simple way with netfilter to do per-site TCP SYN mangling to remove the window scale option? That way sites that have window-scale corrupting firewalls could be blacklisted.

Yes, this is possible with a quite simple piece of code similar to what I did with the 'ECN' target for known ECN blackholes.

All you do is to iterate over the tcp options and NOP out the window scaling options.

Please don't copy any of the mistakes we did before, like the option parsing signedness bug, or overwriting with '0' (end of options) instead of NOP ;)

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie