Date: Thu, 19 May 2016 22:16:20 +0200 From: =?utf-8?B?UmFkZWsgS3JlasSNYQ==?= <radek.krejca@starnet.cz> To: "'freebsd-pf@freebsd.org'" <freebsd-pf@freebsd.org> Subject: RE: Traffic shaping incomming traffic for all vlans Message-ID: <262ED41F8198C0409ACB79946570FFCD1AA1340594@EXCHANGE.mail.starnet.cz> In-Reply-To: <3eefc0f5-eb68-dd8e-6fee-aef8d1edbd37@als.nnov.ru> References: <262ED41F8198C0409ACB79946570FFCD1AA134055F@EXCHANGE.mail.starnet.cz> <3eefc0f5-eb68-dd8e-6fee-aef8d1edbd37@als.nnov.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
on $ext_if proto { tcp, udp } from 192.168.52.0/24
> Why?
Is there any nat rule?
>
> And second problem - how to set up (on which interface) altq queues?
You should use outgoing interface.
Hello,
there is relevant part of my pf.conf
ext_if = "ext0"
int_if = "int0"
scrub all fragment reassemble no-df
altq on $ext_if cbq bandwidth 1Gb queue { \
pokus, \
pokus_default \
}
queue pokus bandwidth 10Mb cbq (red)
queue pokus_default bandwidth 600Mb cbq (default, borrow, red)
nat on $ext_if from "192.168.150.0/24" -> $ext_addr
# This is working rule
#block quick proto { tcp, udp } from 192.168.52.0/24
# This is not working
pass in quick on $ext_if from 192.168.52.0/24 queue pokus
# This doesnt match to
# block quick on $ext_if proto { tcp, udp } from 192.168.52.0/24
On this BSD box are 74 vlans on int_if and I need to shape traffic for all of them.
Thank you very much.
Radek
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?262ED41F8198C0409ACB79946570FFCD1AA1340594>
