Re: How to transfer a IP packet based on ebtables and iptables?

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

 



it depends, for example if you have ip_forward enabled it will forward
the packet for you, using your default route for example in case dest
ip is not in the same subnet.

On 9 November 2010 20:56, Sumin Xia <xiasumin1984@xxxxxxxxx> wrote:
> Hi every one,
>
> According to my understanding, if I implement entables on my Linux system, a
> frame should be passed through ebtables modules. Then, if ebtables modules
> find the destination mac address of the frame is the local mac address, it
> will transfer the frame to layer-3, that is iptables, right?
>
> Now I want to do a test, which modifies the destination mac address of a
> frame before sending it. Therefore, the frame will be forwarded to another
> destination instead of the real destination, while its destination ip
> address is still the real destination ip address. In this case, when the
> frame arrive at pseudo destination machine, will it be transfered to lay-3
> of the system? If it is transfered to lqy-3 of the system, the system will
> find the destination ip address is not local ip address. What will happen
> next? Drop the packet? or send an arp request to find the real destination
> mac address and forward it?
>
> Thanks,
>
> Sumin
> --
> 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
>
--
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