From owner-freebsd-ipfw@freebsd.org Mon May 23 05:46:35 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 B0C6AB4683A for ; Mon, 23 May 2016 05:46:35 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-yw0-x235.google.com (mail-yw0-x235.google.com [IPv6:2607:f8b0:4002:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 773AF103C for ; Mon, 23 May 2016 05:46:35 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: by mail-yw0-x235.google.com with SMTP id x189so161089153ywe.3 for ; Sun, 22 May 2016 22:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tenebras-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=kHUHIHa4thKKCTo+EKz8HQ5ZMnaYB6EUIIwR/wW+XX0=; b=pCFA9eam7S54/5J9BNJOob06FvZCaaUrvJrjHehsmyMRc95fiPcrJpi2GcLThEm6k3 lPpJU5BIRSDBynPKyBgal5SowDiXpaj4vyM6okRUeXF2O6rxr3t7i/1mNRkc9Lu0Q8lC qrbFJMGpWgIFiWhRVsTDMNLtAy+vy6DsaCLLiIGFiwinExzZk2JMRkZ2aeirghpuFkky nDOOvxoMm5SPURTArPF3HKaROGpn1a+5PGruz76+ArzJSrWpivZSTn1oYTr3bz0OjNYy VdtD1mwd/qqFN2myFd9j7VUWppb67mOpPAo00b8slW6pZyGUcZVzk73EstZ+4Z9oqk/5 csWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=kHUHIHa4thKKCTo+EKz8HQ5ZMnaYB6EUIIwR/wW+XX0=; b=cBr76A8ix0+JsjgHu3xoh4a6ioAooARx4qEIxKEpLb1q9jj4ifeQeOOg14QpM814XV E6IuIVCYv8QKCepNFnpfEtmkfGVz4PDDuIW/d+jR59Tw793aV/tytE+uISQeatuMpxqk keRo96LsJZtMseoChdaLwTSbAlxRF1N48jKBwqWhibBjRluxsk8+pYMxrUZM8+mEI+ea IGhrbKq2eJboEzTOyGW8JUP6fCl8h57HLdOEQWGXAcRDzYiFKbML0RxCPnsSoA87XUaI QQxvLf8OnoFd7X2s//9AMCKpgHsRe9YHrLgOjm86ifTrcfZdAAm/TpIqQitN48bAsPvK OOOw== X-Gm-Message-State: AOPr4FV9+VmzOP/yv64JuvxrPufjhaj4u/TveZWF7h/7+7Y60POs0AjiWwgurmNbsbLLUvmQ4skcAlizuS4Is0E8 MIME-Version: 1.0 X-Received: by 10.13.213.9 with SMTP id x9mr8541223ywd.253.1463982394575; Sun, 22 May 2016 22:46:34 -0700 (PDT) Received: by 10.37.217.132 with HTTP; Sun, 22 May 2016 22:46:34 -0700 (PDT) In-Reply-To: <0cb16cbad9293c346cb6938505a9418c.squirrel@jarasoft.net> References: <0cb16cbad9293c346cb6938505a9418c.squirrel@jarasoft.net> Date: Sun, 22 May 2016 22:46:34 -0700 Message-ID: Subject: Re: IPW problem From: Michael Sierchio To: jack@jarasoft.org Cc: "freebsd-ipfw@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 05:46:35 -0000 You can do this with judicious use of a ruleset and setfib (see the man page). You can do all kinds of policy based routing. If you need more than 2 route tables, you'll need a custom kernel - but for your purposes, 2 will do. - M On Sat, May 21, 2016 at 1:39 PM, 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 > > 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" >