[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PF and outgoing traffic



TMB> I might be missing something here but you cannot manage how much traffic is
TMB> sent to you.  By the way, Happy Canada Day OpenBSD

  That is true, but if client downloads data, the traffic is outgoing
  from int card. If client sends data, the traffic is outgoing from
  ext card, can I use it and how?

TMB>   I have 4 cards:

TMB>   rl0 - ext
TMB>   rl1, wi0, wi1 - int

TMB>   Now I manage only incomming traffic with altq:

TMB> net_robert      =       "10.5.1.0/30"
TMB> net_milan       =       "10.5.2.0/30"

TMB> altq on wi0 bandwidth 100Mb cbq queue { dflt_wi0, robert, milan }
TMB> queue dflt_wi0          bandwidth 64Kb  cbq(default)
TMB> queue robert            bandwidth 64Kb
TMB> queue milan             bandwidth 64Kb

TMB> nat     on $ext_if from $net_robert     to any -> ($ext_if)
TMB> nat     on $ext_if from $net_milan      to any -> ($ext_if)

TMB> pass out on wi0 from any to $net_robert    keep state     queue robert
TMB> pass out on wi0 from any to $net_milan     keep state     queue milan

TMB> and the same for other int_if.

TMB> Thanks Radek



-- 
Regards,
 Bc. Radek Krejca
 radek@ceskedomeny.cz
 http://www.ceskedomeny.cz
 http://www.skdomeny.com
 http://www.starnet.cz