Hello, Philip Warner a écrit :
I've seen a lot about martian sources being from a 'wrong' subnet, and in that context can not see why I am getting lots of martian messages in my logs:
Martian source detection is not related to Netfilter/iptables.
Sep 21 22:29:49 ares kernel: martian source 203.8.195.10 from 203.8.195.20, on dev eth1 Sep 21 22:29:49 ares kernel: ll header: ff:ff:ff:ff:ff:ff:00:50:ba:39:10:22:08:06
If I'm not mistaken, this packet looks like a broadcast ARP query from IP 203.8.195.20 and MAC 00:50:ba:39:10:22 aimed at 203.8.195.10. Hence, for some reason, the packet came back to the interface from which it was sent.
Just an idea : did you check that both ends of the ethernet wire have the same duplex setting ?
where eth1 is configured as: eth1 Link encap:Ethernet HWaddr 00:50:BA:39:10:22 inet addr:203.8.195.20 Bcast:203.8.195.255 Mask:255.255.255.0 inet6 addr: fe80::250:baff:fe39:1022/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 collisions:0 txqueuelen:1000
So it seems that your "martian" packet was sent by your box itself. [...]
eth2 Link encap:Ethernet HWaddr 00:01:80:5C:8B:35 inet addr:203.8.195.121 Bcast:203.8.195.121 Mask:255.255.255.255 (this interface should really be dropped,
Yes it should, because its IP setup is broken : local and broadcast addresses are identical. That's what happens with ifconfig which does not behave well with /31 and /32 masks.
and when I drop eth2, I still get martians...so I assume it's not relevant.
If eth2 is not connected to the same ethernet network as eth1, I agree.