These are the outputs I see when I run dmesg

[1373335.656608] device eth0 entered promiscuous mode
[1373364.891962] device eth1 entered promiscuous mode
[1374537.599978] IPv4: martian source from, on dev eth0
[1374562.256536] device eth1 left promiscuous mode
[1375229.342282] device eth1 entered promiscuous mode
[1376178.967446] device eth0 left promiscuous mode
[1376182.455498] device eth0 entered promiscuous mode
  • Q1) I know that martian packets have source addresses that are using non-routable IPs. This host is a Google compute instance with an ephemeral public IP. What does "martian source from" mean ?
  • Q2) Should I iptables filter these (for security sake) ?

2 Answers 2


A packet arriving on an interface is considered "martian" if a hypothetical reply packet would be routed through a different interface. In your case sent a packet to, which arrived on your eth0 interface. If is your address, ip route get correctly reports an interface different from eth0, and you actually intend to do such asymmetric routing, then these martian logs should be disabled like

echo 0 > /proc/sys/net/ipv4/conf/eth0/log_martians

and rp_filter must be disabled as well. Otherwise (and this seems much more probable) there is a routing problem somewhere which should be fixed. If it can't be fixed (quite possible in a hosted cloud environment), you can disable logging altogether like above or drop more selectively by iptables (the filter chain may be too late for that, though).

  • $ ip route get returns eth0 (not asymmetric).
    – Bon Ami
    Sep 10, 2018 at 0:45
  • And still you get martian reports from that IP on eth0? I'm baffled. Is your address at least? Please include the ll header line following the martian report and the output of the ip a, ping -c3, ip route get and ip neigh show to commands (in this order) into your question. Sep 10, 2018 at 11:00

Martian packets are when an expected local address is seen in that interface (e.g. packets local to the network with a different network of that packet).

While it is not an advised network design, it can happen some networks have "martian" packets by design (e.g. VLANs/physical networks with several logical networks).

If you are using iptables in a server, it might not be a bad idea filtering out packets that you should not see.

Note that however, while I would have martian logging in a pre-production setting, I would prefer to not log martian as that usually it generates a lot of logs, and taxes your I/O operations.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .