From owner-freebsd-current@freebsd.org Mon Jan 11 19:38:01 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 162084E41BC for ; Mon, 11 Jan 2021 19:38:01 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward500o.mail.yandex.net (forward500o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::610]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DF3s34gSSz4lNh for ; Mon, 11 Jan 2021 19:37:58 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from sas1-4f6d6a97a84a.qloud-c.yandex.net (sas1-4f6d6a97a84a.qloud-c.yandex.net [IPv6:2a02:6b8:c08:f310:0:640:4f6d:6a97]) by forward500o.mail.yandex.net (Yandex) with ESMTP id 3AFCE600BE; Mon, 11 Jan 2021 22:37:54 +0300 (MSK) Received: from localhost (localhost [::1]) by sas1-4f6d6a97a84a.qloud-c.yandex.net (mxback/Yandex) with ESMTP id tSjKEDQNf3-brEmwTic; Mon, 11 Jan 2021 22:37:53 +0300 Received: by sas1-c37eebe3eab8.qloud-c.yandex.net with HTTP; Mon, 11 Jan 2021 22:37:53 +0300 From: Alexander V. Chernikov To: qroxana Cc: "freebsd-current@freebsd.org" In-Reply-To: References: <20210111155022.71549b54@bsd64.grem.de> Subject: Re: jail fib no longer works after net.add_addr_allfibs=0 MIME-Version: 1.0 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 11 Jan 2021 19:37:53 +0000 Message-Id: <4325361610393748@mail.yandex.ru> Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-Rspamd-Queue-Id: 4DF3s34gSSz4lNh X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a02:6b8:0:1a2d::610:from]; R_DKIM_ALLOW(-0.20)[ipfw.ru:s=mail]; FREEFALL_USER(0.00)[melifaro]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a02:6b8:0:1000::/52]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[ipfw.ru]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[2a02:6b8:0:1a2d::610:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[ipfw.ru:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEMAIL_TO(0.00)[protonmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:13238, ipnet:2a02:6b8::/32, country:RU]; MAILMAN_DEST(0.00)[freebsd-current]; RCVD_IN_DNSWL_LOW(-0.10)[2a02:6b8:0:1a2d::610:from] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2021 19:38:01 -0000 11.01.2021, 14:59, "qroxana" : > On Mon, 11 Jan 2021 13:25:51 +0000, Alexander V. Chernikov wrote: > >>  Could you please consider clarifying the end result you want to achieve? >>  If you could include some more details of how it was configured earlier, it would help as well. > > Thank you for the quick reply. > Let's say there are two jails defined in /etc/jail.conf > > jail1 { >     ... >     ip4.addr = 192.168.1.101; >     exec.fib = 1; >     ... > } > > jail2 { >     ... >     ip4.addr = 192.168.1.102; >     exec.fib = 2; >     ... > } Got it, thank you for the clarification. > > All the traffic in jail1 goes to the default router defined in fib 1, > and traffic in jail2 goes to the default router defined in fib 2. Could you describe interface&routing setup as well? In particular, I'm looking into details of setting up # of fibs, interface configuration and default route setup. > And I could only see 127.0.0.1 after starting the jails: > > # setfib -F 2 netstat -rn > Routing tables (fib: 2) > > Internet: > Destination Gateway Flags Netif Expire > 127.0.0.1 link#2 UHS lo0 > > Internet6: > Destination Gateway Flags > Netif Expire > ... ... > > please let me know if you need more info. Thanks. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"