From owner-freebsd-net@freebsd.org Tue Dec 12 20:04:19 2017 Return-Path: Delivered-To: freebsd-net@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 34F11E82EF8 for ; Tue, 12 Dec 2017 20:04:19 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BF600701A1 for ; Tue, 12 Dec 2017 20:04:18 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id vBCK4Dla018926 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2017 21:04:14 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: sthaug@nethelp.no Received: from eg.sd.rdtc.ru (eugen@localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTP id vBCK494v008106; Wed, 13 Dec 2017 03:04:09 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Changes to route(8) or routing between r325235 and r326782? To: sthaug@nethelp.no, freebsd-rwg@pdx.rh.CN85.dnsmgr.net References: <5A301BAA.8010509@grosbein.net> <201712121833.vBCIXXXf087628@pdx.rh.CN85.dnsmgr.net> <20171212.203058.74686940.sthaug@nethelp.no> Cc: freebsd-net@freebsd.org, crest@rlwinm.de From: Eugene Grosbein X-Enigmail-Draft-Status: N1110 Message-ID: <5A303639.3090109@grosbein.net> Date: Wed, 13 Dec 2017 03:04:09 +0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20171212.203058.74686940.sthaug@nethelp.no> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Spam-Level: ** X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 20:04:19 -0000 On 13.12.2017 02:30, sthaug@nethelp.no wrote: > But I also want the kernel to handle packet *forwarding*, and not > routing policy. I guess I'm looking for a a simplified routed which > will handle my static routes and can be turned on with a only an > xxx_enable in rc.conf and then basically forgotten. > > If I want something more complicated (typically BGP) I'll install > quagga. You can still install quagga with simple "pkg install" command and run "zebra" daemon only to get exactly what you want, and no routing protocols: quagga_enable="YES" quagga_daemons="zebra" Then change all your "kernel routes" ("route add") to "static routes" in terms of quagga storing them in the /usr/local/etc/quagga/zebra.conf like I do: ip route 192.168.0.0/16 reject ip route 192.168.2.0/24 10.0.0.2 And so on. This works just as you need.