Skip to contentSkip to conversation

2.6.24.7 ipv6 send redirect

DISCUSSION Roman Chertov 3 participants 3 messages Nov 7, 2008 – Nov 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,
I need to disable IPv6 ICMP redirect messages. In the
/proc/sys/net/ipv4/conf/all/ there is a flag send_redirects which disables sending of the redirects in IPv4. However, this option is not present in the /proc/sys/net/ipv6/conf/all/. Did this option get moved to another location? I would prefer to disable the redirects via a flag and want to resort to changing the IPv6 forwarding code as the last measure.

Thanks,

Roman

#1 lore raw
Quoted 7 lines · you

I need to disable IPv6 ICMP redirect messages. In the
/proc/sys/net/ipv4/conf/all/ there is a flag send_redirects which disables sending of the redirects in IPv4. However, this option is not present in the /proc/sys/net/ipv6/conf/all/. Did this option get moved to another location? I would prefer to disable the redirects via a flag and want to resort to changing the IPv6 forwarding code as the last measure.

In my understanding, disabling redirects on an IPv6 router is not allowed by the specification (see RFC4294 §4.2).

Signature · 2 lines
Rémi Denis-Courmont
Maemo Software, Nokia Devices R&D
#2 lore raw

Hello,

1) There is no way to disable IPv6 ICMP redirect **sending ** messages. You can only disable IPv6 ICMP redirect ** receiving** messages, via:
echo "0" > /proc/sys/net/ipv6/conf/all/accept_redirects

(Taking a brief look in the implementation will show that there is a field named "accept_redirects" in ipv6_devconf structure, but there is **no** field named send_redirects ,as in ipv4;
see: include/linux/ipv6.h.)

2) The RFC (rfc4294) says: (§4.2)
" Redirect functionality SHOULD be supported. If the node is a router, Redirect functionality MUST be supported."

Regards,
Rami Rosen

Quoted 20 lines · Rémi Denis-Courmont
Quoted 7 lines · you

I need to disable IPv6 ICMP redirect messages. In the
/proc/sys/net/ipv4/conf/all/ there is a flag send_redirects which disables sending of the redirects in IPv4. However, this option is not present in the /proc/sys/net/ipv6/conf/all/. Did this option get moved to another location? I would prefer to disable the redirects via a flag and want to resort to changing the IPv6 forwarding code as the last measure.

In my understanding, disabling redirects on an IPv6 router is not allowed by the specification (see RFC4294 §4.2).

--
Rémi Denis-Courmont
Maemo Software, Nokia Devices R&D
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html