Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2004 17:13:27 +0200 (CEST)
From:      Ludo Koren <lk@tempest.sk>
To:        rizzo@icir.org
Cc:        tscrum@aaawebsolution.com
Subject:   Re: limiting bandwith
Message-ID:  <200404141513.i3EFDR5R084225@lk106.tempest.sk>
In-Reply-To: <20040414075644.A95599@xorpc.icir.org> (message from Luigi Rizzo on Wed, 14 Apr 2004 07:56:44 -0700)

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

    >> I wrote `interactive' (ticks), and I meant addresses that are
    >> used to connect to ssh, web, etc (interactive processes). All
    >> these addresses are NAT-ed. For these, your setup is working
    >> fine. Thank you very much.
    >> 
    >> The problem, I still have, is the following: the SMTP is
    >> flowing through, I am not relaying e-mail on this host. It
    >> seems to me, I cannot put together a rule which pass the
    >> traffic and add it to the queue except when I use keep-state
    >> flag. In this setup (keep-state), Luigi wrote it does not work.

     > i said your configuration does not work the way you want.  It
     > is possible to write a proper configuration that does what you
     > want but it is left as an exercise to the reader.

That I had understand. The problem is, the exercise I don't know to
do, even I tried hard several days... call me stupid...

The setup is: pass 2 mail servers without NAT and add the traffic from
the LAN to WAN to the queue and limit it (or weigth it). 

If I add:

ipfw add queue 3 tcp from A to B 25 
ipfw queue 3 config weight 1 pipe 10 mask src-ip 0x000000ff
ipfw pipe 10 config bw 256Kbit/s

and remove all rules with keep-state, it stops working.


     > 	cheers luigi

Regards,

lk



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200404141513.i3EFDR5R084225>