ebtables does not forward net request, help please.

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

 



Hi all,

I need some help of ebtables behavior. Here is my working environment.
kernel : 2.6.35
we have 4 interfaces eth0/eth1/eth2/eth3 and added to br0 using brctl.
brctl br0 eth0
brctl br0 eth2

Now I use ebtables to control packaging forwarding. 
1, use ebtables to filter out all packaging except the special host mac.
ebtable -A FORWARD -s ! 00:11:22:33:44:55 -d ! 00:11:22::33:44:55 -j DROP
2, using ping tool to check the network connection from eth0 side to eth2 side. (This step it worked fine.)
3, using ebtables to deny all forwarding.
zero ebtables...
ebtables -P FORWARD DROP
4, using ping tool to check the network connection from eth0 side to eth2 side again. (This step, it all worked fine. it cannot connect each other from eth0 to eth2.)
5, Now again allow this specific mac to travel between eth0 and eth2. 
ebtable -A FORWARD -s ! 00:11:22:33:44:55 -d ! 00:11:22::33:44:55 -j DROP
6, Now again, using ping tool to check network connectivity. (eth0-eth2).
The expected result is that network connection between eth0 and eth2 should be available. But unfortuntly sometimes the connectivity is not available. This happends about 2-3 times when I tried this for 10 times. This is a little strange to me. And the network is only available after the host send a ARP request through eth0, only then the network becomes available again. 
Please can anyone help about this? Thanks a lot.

Ivan?韬{.n?????%??檩??w?{.n???租??)?骅w*jg????????G??⒏⒎?:+v????????????"??????


[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