Date: Sat, 27 Feb 2016 07:34:28 -0600 From: dweimer <dweimer@dweimer.net> To: JosC <bsduser@cloudzeeland.nl> Cc: "freebsd-questions@FreeBSD.org" <freebsd-questions@freebsd.org>, owner-freebsd-questions@freebsd.org Subject: Re: Changing Gateway temporarilly Message-ID: <64464a20bc1915c8dc7c957d6e7802c3@dweimer.net> In-Reply-To: <56D1A1F5.1030602@cloudzeeland.nl> References: <56D1A1F5.1030602@cloudzeeland.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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) <https://www.freebsd.org/cgi/man.cgi?query=pf.conf&sektion=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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64464a20bc1915c8dc7c957d6e7802c3>