reassign 968712 linux-signed-amd64
retitle 968712 IPv6 default accept_redirect not honoured
thankyou

Hi,
  This isn't a procps bug for two reasons.
1) It looks like you are using systemd, so the program doing the
changes would be systemd-sysctl
2) Either program merely writes the value to the "default" or "all"
sysctl file, its not sysctl's job to transfer it to the relevant
interface.

I've re-assigned it to the kernel, because that's where the copying occurs.

On Fri, 21 Aug 2020 at 00:15, Testinstall <testinst...@testinstall.com> wrote:
> c) Check the values in /proc - some interfaces are still 1 (some real 
> interfaces, not just loopback).
$ for f in `ls -1 /proc/sys/net/ipv6/conf/*/accept_redirects` ; do
echo -n $f'=' ; cat $f ; done
/proc/sys/net/ipv6/conf/all/accept_redirects=0
/proc/sys/net/ipv6/conf/default/accept_redirects=0
/proc/sys/net/ipv6/conf/eno1/accept_redirects=1
/proc/sys/net/ipv6/conf/lo/accept_redirects=1
/proc/sys/net/ipv6/conf/virbr0/accept_redirects=0
/proc/sys/net/ipv6/conf/virbr0-nic/accept_redirects=0
/proc/sys/net/ipv6/conf/wlo1/accept_redirects=0

Breaking this down:
The first two lines are zero, that's the entire job of sysctl or
systemd-sysctl done.

The interfaces except eno and lo have 0, this is expected behaviour.

eno1 and lo have 1, this is not expected.

Oddly enough it seems they won't ever change, maybe by design?

# echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
# cat /proc/sys/net/ipv6/conf/eno1/accept_redirects
1
# echo 1 > /proc/sys/net/ipv6/conf/all/accept_redirects
# echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
# cat /proc/sys/net/ipv6/conf/eno1/accept_redirects
1

Directly writing to it makes it work.

# echo 0 > /proc/sys/net/ipv6/conf/eno1/accept_redirects
# cat /proc/sys/net/ipv6/conf/eno1/accept_redirects
0

Reply via email to