From owner-freebsd-doc@FreeBSD.ORG Mon Mar 21 16:05:19 2011 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 144721065673 for ; Mon, 21 Mar 2011 16:05:19 +0000 (UTC) (envelope-from michel.targo@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id B84558FC17 for ; Mon, 21 Mar 2011 16:05:18 +0000 (UTC) Received: by qyk35 with SMTP id 35so2373681qyk.13 for ; Mon, 21 Mar 2011 09:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:organization:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=Nxvpjxl8HRZmRu5ckJCzjSeMzr394MeMWSPcf+9NXJA=; b=hMaDPAFRisqFLueKY/q8x3CkwwUncZ7R2j+dlGf4HYReIkX1yFxduLsj4M4EWcyzo8 Wlw6wIdEFbylsbJNFcYf3VTyJ+FSez1z01g4PkciQDa1jF3vpSJp6aWlB/omXxRqGES6 3MJRacKvMxhHv5yBAMetr/WsogRNMuR+S2X8Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; b=X7/2gB1uScMQs+FvoUH5lBkNhWUdN3V9eYpHauYvAQpXjusP94jz9Jvp8EUa7m17WW LniEdl0DzuNdEXHfXckX+Sq1qyrjmzGVA8s1MBmAf32nkAUYNIIickZWhEFxpRb3Ng8B mQEJ+1w+mxuSaRZ0y1Eyv5NOqhK4gElH8Rils= Received: by 10.229.119.134 with SMTP id z6mr3365246qcq.63.1300721910562; Mon, 21 Mar 2011 08:38:30 -0700 (PDT) Received: from [192.168.3.173] ([216.113.24.86]) by mx.google.com with ESMTPS id c27sm4300734qck.22.2011.03.21.08.38.28 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 08:38:29 -0700 (PDT) Message-ID: <4D877119.1050301@targo.ca> Date: Mon, 21 Mar 2011 11:39:05 -0400 From: Michel Blais Organization: Targo Communications User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-doc@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: pf.conf(5) man page X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 16:05:19 -0000 You should add the sytaxe and exemple for policy routing under routing , the're lot of questions about it without answer on the forum. pass in on $int_if route-to ($ext_if1 $ext_gw1) from $subnet1 pass in on $int_if route-to ($ext_if2 $ext_gw2) from $subnet2 exemple : I have two ISP, I want the traffic from 192.168.0.0/24 to go too isp1 and 172.16.0.0/24 to go too isp2 pass in on $int_if route-to ($isp1_if $isp1_gw) from 192.168.0.0/24 pass in on $int_if route-to ($isp2_if $isp2_gw) from 172.16.0.0/24 the mistake come from OpenBSD doc for loadbalacing that don't seem to work in the case of policy routing. Should be added to pf.conf(5) http://www.freebsd.org/cgi/man.cgi?query=pf.conf&sektion=5&manpath=FreeBSD+8.2-RELEASE -- Michel Blais Administrateur réseau / Network administrator Targo communications Montréal : (514) 448-0773 Valleyfield : (450) 322-6142