Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Apr 2003 10:41:16 -0700
From:      Sereciya Kurdistani <sereciya@kurdistan.ath.cx>
To:        freebsd-ipfw@freebsd.org
Subject:   Sereciya :: Prioritizing empty TCP ACKs... OpenBSD pf -> FreeBSD ipfw Translation
Message-ID:  <20030406174116.GC15115@kurdistan.ath.cx>

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

Hello,

  I'm trying to translate the following code designed to set Prioritizing
  for empty TCP ACKs (taken from:  http://www.benzedrine.cx/ackpri.html):

  Suggestions, recommendations & corrections gladly accepted; send em over!

  OpenBSD pf:
  ^^^^^^^^^^
  ext_if="kue0"

  altq on $ext_if priq bandwidth 100Kb queue { q_pri, q_def }
  queue q_pri priority 7
  queue q_def priority 1 priq(default)

  pass out on $ext_if proto tcp from $ext_if to any flags S/SA \
        keep state queue (q_def, q_pri)

  pass in  on $ext_if proto tcp from any to $ext_if flags S/SA \
        keep state queue (q_def, q_pri)


  FreeBSD ipfw:
  ^^^^^^^^^^^^^
  oif_1="tun0"

  ipfw pipe  1 config bw 100Kbyte/s noerror 
  ipfw queue 1 config weight 1 pipe 1
  ipfw queue 2 config weight 7 pipe 1

  ipfw add NNNN check-state
  ipfw add NNNN queue 1 tcp from any to any out via ${oif_1} keep-state iptos lowdelay tcpflags ack  ## ??? tcpack ack ??? 

  ipfw add NNNN queue 1 tcp from any to any in  via ${oif_1} tcpflags ack


  Is this correct?

-- 
+--------------------------------------------------------------+
| Welat xwe ava nake, dest bidin hevdu, pist nedin tu dijmin  |
|   Riya azadiy ne hsan e, hviya xwe bernedin, dema me      |
|     nzk e.                                                 |
|                                                              |
| Hevalt bi kesn du r nekin, hevalt bi hevdu ra bikin      |
|   Ne ji hevaltiya wan kesn pxwas  r dirj, ne bi wan     |
|     kesn xwnperest, ne j ji yn din.                      |
|                                                              |
|                                   -Srciya Kurdistan       |
+--------------------------------------------------------------+



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