Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 19:37:53 +0000
From:      Alexander V. Chernikov <melifaro@ipfw.ru>
To:        qroxana <qroxana@protonmail.com>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: jail fib no longer works after net.add_addr_allfibs=0
Message-ID:  <4325361610393748@mail.yandex.ru>
In-Reply-To: <YOYA9CI5rRgTMRWDLmVLRmtFBUMupAM4NvDT2X01ic-tJHzRiJeA-j6ZSNU3CCDmIAUpclXnZQGEGstteJBRD44iS2ZxsG8yJG4OgKijA6U=@protonmail.com>
References:  <E1kywTP-00076Z-81.qroxana-mail-ru@smtp40.i.mail.ru> <20210111155022.71549b54@bsd64.grem.de> <YOYA9CI5rRgTMRWDLmVLRmtFBUMupAM4NvDT2X01ic-tJHzRiJeA-j6ZSNU3CCDmIAUpclXnZQGEGstteJBRD44iS2ZxsG8yJG4OgKijA6U=@protonmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
11.01.2021, 14:59, "qroxana" <qroxana@protonmail.com>:
> On Mon, 11 Jan 2021 13:25:51 +0000, Alexander V. Chernikov <melifaro@ipfw.ru> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4325361610393748>