From owner-freebsd-questions@freebsd.org Sat Feb 27 13:34:36 2016 Return-Path: Delivered-To: freebsd-questions@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 70CD9AB68D1; Sat, 27 Feb 2016 13:34:36 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (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 4397BF71; Sat, 27 Feb 2016 13:34:35 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.local (localhost [10.9.5.2]) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPS id u1RDYSrg014995 (version=TLSv1.2 cipher=DHE-RSA-CHACHA20-POLY1305 bits=256 verify=NO); Sat, 27 Feb 2016 07:34:28 -0600 (CST) (envelope-from dweimer@dweimer.net) Received: (from www@localhost) by webmail.dweimer.local (8.15.2/8.15.2/Submit) id u1RDYSpM014994; Sat, 27 Feb 2016 07:34:28 -0600 (CST) (envelope-from dweimer@dweimer.net) X-Authentication-Warning: webmail.dweimer.local: www set sender to dweimer@dweimer.net using -f To: JosC Subject: Re: Changing Gateway temporarilly X-PHP-Script: www.dweimer.net/webmail/index.php for 10.9.5.1, 10.9.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 27 Feb 2016 07:34:28 -0600 From: dweimer Cc: "freebsd-questions@FreeBSD.org" , owner-freebsd-questions@freebsd.org Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: <56D1A1F5.1030602@cloudzeeland.nl> References: <56D1A1F5.1030602@cloudzeeland.nl> Message-ID: <64464a20bc1915c8dc7c957d6e7802c3@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.1.4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2016 13:34:36 -0000 On 2016-02-27 7:17 am, JosC wrote: > Running FreeBSD v9 using Gateway1 (50/10Mbit) with Postfix and Apache2 > Don't have two NICs in my server. > Running IPFW. > > I have another Gateway2 (200/35Mbit) which I would like FreeBSD to use > for certain internet traffic (download ports and some uploads). > Can you tell me how I could realize this? 2nd Nic is no option. > > Thanks for your reply, > Jos Chrispijn > > --- > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" I believe the term you are looking for is policy based routing, have a look at man pf.conf(5) . Using pf will allow you to set up rules that route traffic out different gateways. As for getting the second gateway accessible, you can simply use an alternate IP address on the interface. Use vlans if you have a switch supporting it. or use the same internal subnet for both gateways, but of course different IPs for the gateway itself. I haven't done it myself on FreeBSD, but I do use a similar setup on a pfSense box on one of the remote manufacturing plants where I work. in that case its in a small town, best download rate we can get is on DSL, but upload is very limited so we have a bundled T1 for VPN back to main office, and use the DSL line with HTTP & HTTPS traffic routed to DSL. -- Thanks, Dean E. Weimer http://www.dweimer.net/