Summary: | rp_filter unconditionally set to 1 in /etc/init.d/net.eth0 ignoring defaults in sysctl.conf | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | jochen <jochen.eisinger> |
Component: | [OLD] Core system | Assignee: | Martin Schlemmer (RETIRED) <azarah> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=71971 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
jochen
2003-07-10 08:57:14 UTC
Added a kludge to CVS - should solve your problem: --------------------------------------- Index: init.d/net.eth0 =================================================================== RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.eth0,v retrieving revision 1.28 diff -u -r1.28 net.eth0 --- init.d/net.eth0 16 Mar 2003 08:03:19 -0000 1.28 +++ init.d/net.eth0 16 Jul 2003 18:08:33 -0000 @@ -124,8 +124,10 @@ fi # Enabling rp_filter causes wacky packets to be auto-dropped by - # the kernel - if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ] + # the kernel. Note that we only do this if it is not set via + # /etc/sysctl.conf ... + if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ] && \ + [ -z "$(egrep '^[^#]*rp_filter' /etc/sysctl.conf 2>/dev/null)" ] then echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter fi |