Re: double packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Martijn van Oosterhout wrote:

On Tue, Dec 20, 2005 at 12:34:25PM +0100, Marco Berizzi wrote:
> Good morning Bill.
> I think I have found the "feature": /proc/sys/net/ipv4/conf/*/log_martians
> Enabling it and then dmesging I see:
>
> Dec 20 10:18:42 Pleiadi kernel: martian source 'HDSL_public_network_host'
> from 'ADSL_IP', on dev eth0
> Dec 20 10:18:42 Pleiadi kernel: ll header:
> 00:60:97:d8:e5:01:00:07:50:7e:65:e0:08:00
>
> So I think linux will drop these packets anyway (they will even not reach
> netfilter I think):
> may anyone confirm this?

They get dropped by the rp_filter. If you disable the rp_filter, they
don't get dropped (or logged) anymore...

I tried to echo 0 > rp_filter (on eth0, eth1, eth2, lo, default, all) and
echo 1 > log_martians (on eth0, eth1, eth2, lo, default, all) and linux
(2.6.14.4) is logging these packets. They also are dropped.


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux