From owner-freebsd-ipfw@freebsd.org Mon May 23 06:12:48 2016 Return-Path: Delivered-To: freebsd-ipfw@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 96E1DB46F88 for ; Mon, 23 May 2016 06:12:48 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5D3F61F09 for ; Mon, 23 May 2016 06:12:47 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-225-151.lns20.per1.internode.on.net [121.45.225.151]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id u4N6CYOS092065 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 22 May 2016 23:12:38 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: IPW problem To: jack@jarasoft.org, freebsd-ipfw@freebsd.org References: <0cb16cbad9293c346cb6938505a9418c.squirrel@jarasoft.net> From: Julian Elischer Message-ID: <45a991b0-cf28-c934-ed99-4e1c23ceeadd@freebsd.org> Date: Mon, 23 May 2016 14:12:27 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <0cb16cbad9293c346cb6938505a9418c.squirrel@jarasoft.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 06:12:48 -0000 On 22/05/2016 4:39 AM, Jack Raats wrote: > Hi everyone, > > I have the following problem. > > My home server has 2 NICs > > NIC1 > bge0 ip-address 10.10.10.30 netmask 255.255.255.0 gateway 10.10.10.100 > ADSL connection 10 Mbit/1 Mbit > > NIC2 > bge1 ip-address 10.10.10.32 netmask 255.255.255.0 gateway 10.10.10.200 > Cable connection 200 Mbit/20 Mbit > > I have to use NIC1 for all services I'm running, but when the home server > wants to download something e.g. the ports, then it has to use NIC2 > > How can this be done using IPFW??? > IPFW is compiled in the kernel. I'm using FreeBSD 10.3-STABLE > > Thanks for the help where is the NAT hapenning? at each of the modems? If so, configure 2 FIBs then assign regular behaviour fib 0 but make fib 1 have the cable modem as default all 'fetch' operations should then be performed with fib 1. e.g. setfib 1 fetch https:example.com/test.txt > Jack > > > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >