From owner-freebsd-questions@FreeBSD.ORG Fri Nov 11 17:36:59 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 578B916A421 for ; Fri, 11 Nov 2005 17:36:59 +0000 (GMT) (envelope-from plaine@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2260843D70 for ; Fri, 11 Nov 2005 17:36:50 +0000 (GMT) (envelope-from plaine@gmail.com) Received: by nproxy.gmail.com with SMTP id d4so197400nfe for ; Fri, 11 Nov 2005 09:36:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NUpLaECUNb+l3j2M0o/yqGsYuJgIFkii6xpYhEf+tT/nS98+ZpUyezCGP4Xi7hRA+LO/FgkoEl2ejQw46lltPSOaGBv0XUGgm5MvEyWMAIrFuNqP+SVYL/shmZaJhUSdVJ4i3S+VjFnsI/B+bSiJLsy17/oQlUyz0NUYmT4CyxA= Received: by 10.48.225.4 with SMTP id x4mr155989nfg; Fri, 11 Nov 2005 09:36:49 -0800 (PST) Received: by 10.48.4.20 with HTTP; Fri, 11 Nov 2005 09:36:49 -0800 (PST) Message-ID: Date: Fri, 11 Nov 2005 19:36:49 +0200 From: Perttu Laine To: freebsd-questions@freebsd.org In-Reply-To: <44ek5nccv7.fsf@be-well.ilk.org> MIME-Version: 1.0 References: <44ek5nccv7.fsf@be-well.ilk.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: route how to? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 17:36:59 -0000 On 11 Nov 2005 12:29:00 -0500, Lowell Gilbert < freebsd-questions-local@be-well.ilk.org> wrote: > > Perttu Laine writes: > > > I'd like to add route to my computer so one ip would be forwarded to > > "/dev/null". So all other connections would work normally, but > connection to > > for example 192.168.10.1 > would not work. How can this > > be done? And I propably need same for IPv6 too. I'd like to this with > route > > instead of firewall 'cause this is temporary and kernel of that compute= r > > don't have pf enabled at the moment. > > > > Oh. And if I add this route, how can delete it later? > > I usually do this kind of thing with a firewall, but the routing table > is a good way too. > > "man route" will explain everything you need to do. > I asked because I'm not very familiar with route and don't want to broke everything. :) But is this ok: route add 192.168.10.1 127.0.0.1 or does it matter what I put as gateway? -- kpn @ IRCnet