ipt_ROUTE and destination MAC address

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

 



Hello,

i'm coding a virtual interface. That virtual interface has to receive packets
coming on eth0. For that purpose, i'm using ipt_ROUTE. That works great, i can
see my packets arriving on red0 (my virtual interface).

But there is a problem..

If i send an icmp request to 10.0.1.1 from another computer:

The icmp request arrives on the physical interface, ROUTE target makes it
arrive on red0

icmp request arriving on red0: 10.0.0.1

The problem is that the destination MAC is the one of eth0, so, it seems the
kernel doesn't really deliver the packet to my driver. I can see it in tcpdump
but my driver receive function is never called.

I tried every -j ROUTE option, --gw or --iif, with --continue, or not..

Any idea?
-
: 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