Re: Firewall rules that discriminate by connection duration

From: D . (xlr8me_at_gmail.com)
Date: 11/11/04

  • Next message: Zoran Kolic: "ipfw logging"
    Date: Thu, 11 Nov 2004 09:43:25 -0500
    To: John Webster <jwebster@es.net>
    
    

    I already suggested ipfw & dummynet to him, I attached his response.

    I couldn't see any other way to do it which wouldn't mess up all other
    persistent connections (http1.1, etc).

    On Wed, 10 Nov 2004 14:45:43 -0700, Brett Glass <brett@lariat.org> wrote:
    >
    > Yes. It's persistent connections that you want to throttle. You cannot
    > throttle P2P on the basis of port number, because many P2P systems use
    > well known ports such as 80.
    >
    > --Brett Glass
    >

    On Wed, 10 Nov 2004 11:16:45 -0800, John Webster <jwebster@es.net> wrote:
    >
    >
    >
    >
    > --On Thursday, November 11, 2004 05:36:06 +1100 Peter Jeremy <PeterJeremy@optushome.com.au> wrote:
    >
    > > On Wed, 2004-Nov-10 13:23:21 +0200, Vlad GALU wrote:
    > >> On Tue, 9 Nov 2004 20:10:30 -0700 (MST), Brett Glass <brett@lariat.org> wrote:
    > >>> I'm interested in crafting firewall rules that throttle connections
    > >>> that have lasted more than a certain amount of time. (Most such
    > >>> connections are P2P traffic, which should be given a lower priority
    > >>> than other connections and may constitute network abuse.) Alas, it
    > >>> doesn't appear that FreeBSD's IPFW can keep tabs on how long a
    > >>> connection has been established. Is there another firewall for
    > >>> FreeBSD that can?
    > >>
    > >> All firewalls in FreeBSD can, actually. It's part of the stateful
    > >> inspection feature. The only thing they lack is a match parameter
    > >> based on the timer.
    > >
    > > That's a bit of a stretch. Stateful inspection associates a single
    > > timeout with each connection. The timeout is reset when a valid
    > > packet is seen on that connection and the connection blocked if the
    > > timeout expires.
    > >
    > > Brett needs a timeout that is initialised when the connection is setup
    > > and not reset. When it expires, you need to perform some different
    > > action rather than just block the connection. You might be able to
    > > reuse some of the existing stateful inspection code but I don't
    > > believe it's a trivial change.
    >
    >
    > How about ipfw and dummynet? Maybe set up pipes for p2p traffic?
    >
    >
    >

    -- 
    Want Gmail?  
    Just ask, and I'll hook you up.
    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
    

  • Next message: Zoran Kolic: "ipfw logging"

    Relevant Pages

    • Re: OE6 does not connect with pop3 server
      ... Can we infer from this that you got a timeout on the EarthLink account ... My point about making an approximate timestamp is just to look at the ... E.g. as near as possible before the connection ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • Re: Timout control with RPC/HTTP
      ... specifies the minimum connection timeout used by the ... client and RPC Proxy, in seconds. ... Microsoft CSS Online Newsgroup Support ...
      (microsoft.public.exchange.admin)
    • Re: Timout control with RPC/HTTP
      ... please also check the RPC web site connection timeout settings ... Maybe the idle timeout settings depend on here. ...
      (microsoft.public.exchange.admin)
    • Re: web serivce: client side timeout?
      ... client side but only from the server side. ... System.Net.Sockets.SocketException: A connection attempt failed ... asyncResult, Int32 timeout, Exception& exception) ... John Saunders | MVP - Windows Server System - Connected System ...
      (microsoft.public.dotnet.framework.webservices)
    • Re: Timout control with RPC/HTTP
      ... But it is a IDLE timeout period that I am looking to control. ... But when they are idel the connection status will say - " last updated ...." ... Where do I control the settings for outlook to reconnect to the server to see if the mailbox is in sync with the remote lcoal cache. ... Microsoft CSS Online Newsgroup Support ...
      (microsoft.public.exchange.admin)