lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210629125316.GA18078@moon.secunet.de>
Date:   Tue, 29 Jun 2021 14:53:16 +0200
From:   Antony Antony <antony.antony@...unet.com>
To:     David Ahern <dsahern@...il.com>
CC:     <antony.antony@...unet.com>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
        David Ahern <dsahern@...nel.org>, <netdev@...r.kernel.org>,
        Christian Perle <christian.perle@...unet.com>
Subject: Re: [PATCH net-next] ipv6: Add sysctl for RA default route table
 number

Hi David,

On Fri, Jun 25, 2021 at 22:47:41 -0600, David Ahern wrote:
> On 6/25/21 1:04 AM, Antony Antony wrote:
> > From: Christian Perle <christian.perle@...unet.com>
> > 
> > Default routes learned from router advertisements(RA) are always placed
> > in main routing table. For policy based routing setups one may
> > want a different table for default routes. This commit adds a sysctl
> > to make table number for RA default routes configurable.
> > 
> > examples:
> > sysctl net.ipv6.route.defrtr_table
> > sysctl -w net.ipv6.route.defrtr_table=42
> > ip -6 route show table 42
> 
> How are the routing tables managed? If the netdevs are connected to a
> VRF this just works.

The main routing table has no default route. Our scripts add routing rules 
based on interfaces. These rules use the specific routing table where the RA 
(when using SLAAC) installs the default route. The rest just works.

I noticed an improvement the patch I sent.
I will sent a rebased v2 after the net-next tree is open.
I guess the net-next is closed now?

-               .proc_handler   =       proc_dointvec,
+               .proc_handler   =       proc_douintvec,

-antony

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ