Re: Linux vs FreeBSD Which is correct.
flat view
From: Pascal Hambourg <hidden>
Date: 2011-08-17 20:23:31
Hello, Stephen Clark a écrit :
On 08/17/2011 01:17 PM, Rémi Denis-Courmont wrote:quoted
Le mercredi 17 août 2011 20:03:18 Stephen Clark, vous avez écrit :quoted
I have run into a situation where if I ping our HQ the response comes back on a different interface than what the request went out on. FreeBSD is happy and says it got the response, Linux is not and gives no indication it got a response. So is FreeBSD wrong or is Linux wrong?
Neither is right or wrong. It partly depends whether you want to enforce so-called "weak" or "strong" host model.
quoted
Most distributions enable reverse path filtering by default. It can be disabled: # echo -n 0> /proc/sys/net/ipv4/conf/all/rp_filter But you should probably fix the configuration instead (e.g. /etc/sysctl.conf).Sorry that didn't help either.
Since some kernel version the logic of this sysctl has changed from AND(all, $interface) to MAX(all, $interface). So you must set net/ipv4/conf/$interface/rp_filter to 0 too to disable it. Or set net/ipv4/conf/all/rp_filter to 2 to make it weaker.