From owner-freebsd-pf@freebsd.org Thu May 19 16:02:03 2016 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7EF39B41E91 for ; Thu, 19 May 2016 16:02:03 +0000 (UTC) (envelope-from maximos@als.nnov.ru) Received: from mx.als.nnov.ru (mx.als.nnov.ru [95.79.102.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 411141AF1 for ; Thu, 19 May 2016 16:02:02 +0000 (UTC) (envelope-from maximos@als.nnov.ru) Received: from [10.4.1.100] by mx.als.nnov.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_2 (FreeBSD)) (envelope-from ) id 1b3QOY-000LDC-N3 for freebsd-pf@freebsd.org; Thu, 19 May 2016 19:01:54 +0300 Subject: Re: Traffic shaping incomming traffic for all vlans To: freebsd-pf@freebsd.org References: <262ED41F8198C0409ACB79946570FFCD1AA134055F@EXCHANGE.mail.starnet.cz> From: Max Message-ID: <3eefc0f5-eb68-dd8e-6fee-aef8d1edbd37@als.nnov.ru> Date: Thu, 19 May 2016 19:01:54 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <262ED41F8198C0409ACB79946570FFCD1AA134055F@EXCHANGE.mail.starnet.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 May 2016 16:02:03 -0000 19.05.2016 12:48, Radek Krejča пишет: > Hello, > > I have freebsd router with pf for NAT and firewall. There are 2 NICs, one for incomming traffic from internet and second for traffic to clients. On internal NIC are a lot of vlans. > > I need to make traffic shaping for all users based on src ip from internet. But I have problem, it doesnt work. > > Working rule for block all traffic is: > > block quick proto { tcp, udp } from 192.168.52.0/24 > > but the same rule with externa nic dosnt match: block quick 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. > > Thank you very much. > Radek > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"