Re: martian destination and RAW iptable

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

 



>>>
>>> I wanted to filter out the annoying logs:
>>>
>>> Jan 24 00:19:54 tetra kernel: martian destination 0.0.0.0 from 1.2.3.4,
>>> dev eth0
>>>
>>> and issued the following:
>>>
>>> #iptables -t raw -I PREROUTING -s 1.2.3.4 -d 0.0.0.0 -j DROP
>>> #iptables -t raw -I PREROUTING -s 1.2.3.4 -j DROP
>>>
>>> Amazingly, I'm still getting those pesky log messages. How is this
>>> possible?

The problem was in arp_process():

 814        if (arp->ar_op == htons(ARPOP_REQUEST) &&
 815            ip_route_input(skb, tip, sip, 0, dev) == 0) {

So the packet "arp who has 0.0.0.0 tell 1.2.3.4" triggered those log messages.

Sorry for spamming.

Best,
Yury
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux