From owner-freebsd-pf@FreeBSD.ORG Tue Nov 20 12:01:05 2012 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF481344 for ; Tue, 20 Nov 2012 12:01:05 +0000 (UTC) (envelope-from dhartmei@insomnia.benzedrine.cx) Received: from insomnia.benzedrine.cx (cust.static.213-3-30-106.swisscomdata.ch [213.3.30.106]) by mx1.freebsd.org (Postfix) with ESMTP id EDE218FC1A for ; Tue, 20 Nov 2012 12:01:04 +0000 (UTC) Received: from insomnia.benzedrine.cx (localhost.benzedrine.cx [127.0.0.1]) by insomnia.benzedrine.cx (8.14.1/8.13.4) with ESMTP id qAKC12vE012388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Nov 2012 13:01:02 +0100 (MET) Received: (from dhartmei@localhost) by insomnia.benzedrine.cx (8.14.1/8.12.10/Submit) id qAKC11Ci028970; Tue, 20 Nov 2012 13:01:01 +0100 (MET) Date: Tue, 20 Nov 2012 13:01:01 +0100 From: Daniel Hartmeier To: Hooma Fazaeli Subject: Re: WAN load balance with PF Message-ID: <20121120120101.GB18780@insomnia.benzedrine.cx> References: <3908090977629100732@unknownmsgid> <50AB59F3.6070208@gmail.com> <20121120103424.GA18780@insomnia.benzedrine.cx> <50AB61CF.9040309@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50AB61CF.9040309@gmail.com> User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 20 Nov 2012 12:01:05 -0000 On Tue, Nov 20, 2012 at 02:26:15PM +0330, Hooma Fazaeli wrote: > > # assuming default route through $wan_if1 > > nat on $wan_if1 from $lan_if1:network to any -> { $wan_if1 $wan_if2 } > > round-robin > > pass out on $wan_if1 route-to ($wan_if2 $wan_ip2) from $wan_if2 to any > > > >Daniel > But there is no wan_if2 actually. The box has only two interfaces: one > connected to LAN and > the other connected to L2 switch (to which modems are connected). Same thing, just pass out on $wan_if1 route-to ($wan_if1 $wan_ip2) from $wan_if2 to any Daniel