From owner-freebsd-net@freebsd.org Sat Oct 29 20:48:44 2016 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 B1C2CC26174 for ; Sat, 29 Oct 2016 20:48:44 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-ua0-x22d.google.com (mail-ua0-x22d.google.com [IPv6:2607:f8b0:400c:c08::22d]) (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 7457FCB2 for ; Sat, 29 Oct 2016 20:48:41 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by mail-ua0-x22d.google.com with SMTP id 12so79056920uas.2 for ; Sat, 29 Oct 2016 13:48:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1VWcEpWcs6R1Zn83WTzlJ048hS+IvXSSgGvCoJtOH+k=; b=ywuFB6siTwkci9DSVvOZPIxGgKlopccBrI/hThiYjLyPbxSGVQFo5BrnzUjY+8CuE2 r481zBata8CcoBc8vRwDt7W7ou0y2YbV04WzGtTOcnjyEFifUnlB8X13rgUQ8zkoP8ai cx1iUhrNr6xXzTSso3gFUjxkZ4NqMH6BHTLIQFkQNFJGOrHE240JL6mU9aAIRTyU8e+I OI3EZdoxfE1+bW0cCI/lTDQ9s08dvxZT1h3hWbBJZ0RqasBazg83k0a3PtGGGjl9Ec5a B0a+MNLaMJjzlkFaj/W3CMMWO3EG7p7OvXnRUmYWqNY8B1R0mV7YDVG10u4u684C0QiG tidg== 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:from:date :message-id:subject:to:cc; bh=1VWcEpWcs6R1Zn83WTzlJ048hS+IvXSSgGvCoJtOH+k=; b=A7otbplQKschVIslg7qf121GSLxOQva9qtEs6H+/NBbmnbd/UodJFT2tw7kA+Oy2sA 71o9nPttu74PAnGzh43e1GmFhcvQh3noFTdWE+7p865Led72zS5FlUDo9JwMQjFCg6nc /niuY9YNCPyXUV5/TCl4pfr0qdD8aB0bNVbsAqFzAlXGuqzXWYzJ8/bZF2addtnYPK5i 9kTmswfZU3ay9ZZWlC8srppd+yznzwMrgV/kOsljhJujKKaCL1gWqpzX68vI0AuvpKwG 9oGSsMNbLzJaVsSHwsWUaVZnqm+DRQ2V1hhL0jxq84qB3tIBM4DUQbYx4Gv/MFYHw4Kn bzlw== X-Gm-Message-State: ABUngve6Wr+XMkKPVszh0stz6YiUfNYSJU8C0hUv6anT7jLOlDrcTjHG/ek6g5VQJjtqxvtB3U0KAi05AJE3YQ== X-Received: by 10.159.48.207 with SMTP id k15mr18024795uab.53.1477774120615; Sat, 29 Oct 2016 13:48:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.92.151 with HTTP; Sat, 29 Oct 2016 13:48:40 -0700 (PDT) In-Reply-To: <2685a303-1450-d060-0206-c84004f73e6d@aldan.algebra.com> References: <2685a303-1450-d060-0206-c84004f73e6d@aldan.algebra.com> From: Jack Vogel Date: Sat, 29 Oct 2016 13:48:40 -0700 Message-ID: Subject: Re: How to forward traffic out via a non-default interface? To: "Mikhail T." Cc: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2016 20:48:44 -0000 You got your answer on the other site :) You do know you can change the default address of the router so its not 192.168.1 don't you, it even persists over a reset... On Sat, Oct 29, 2016 at 1:21 PM, Mikhail T. wrote: > Hello! I asked this question online already: > > http://superuser.com/q/1138996/247471?sem=2 > > if you have an answer, please, share it wherever you feel appropriate... > > have a fairly vanilla home LAN with an Internet provider-supplied router > providing DHCP. The router uses many of its default settings unmodified. > The home network is 192.168.1.0/24 and the router itself is known > internally as 192.168.1.1. > > I need to configure several similar routers to change their default > settings. One of my computers (running FreeBSD) has a spare Ethernet > interface (|bce0|) and I connected one of these additional routers to it. > As expected, this router /also/ uses 192.168.1.1. The machine now has two > "configured" interfaces: > > * |bce1| -- 192.168.1.8, which is connected to the "real" router, > connecting it to the Internet and the rest of the home LAN > * |bce0| -- 192.168.1.5, which is connected to the second router, > which I need to change to use different network settings > > How can I reach this second router without breaking the machine's > connectivity with the LAN and the Internet? Simply trying to reach > 192.168.1.1 goes through |bce1| and reaches my normal router... > > Can |ipfw(8)| somehow force certain packets to go out using |bce0| instead > of |bce1|? Preferably, without the use of "fib", because adding one > requires a reboot... > > Thanks! Yours, > > -mi > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >