Re: Identify traffic coming from which bridge

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

 



Dear Master Yoda =)

You can try to use "--mac-source" match in iptables, combine iptables
with ipset and get the following rules:

ipset create bridge_a_clients src hash:ip
ipset create bridge_b_clients src hash:ip

iptables -t raw -A PREROUTING  --mac-source "BRIDGE_A_MAC" -j SET
--add-set bridge_a_clients src
iptables -t raw -A PREROUTING  --mac-source "BRIDGE_B_MAC" -j SET
--add-set bridge_b_clients src

To view bridge_a_clients use:
ipset bridge_a_clients list

To view bridge_b_clients use:
ipset bridge_b_clients list

This is not optimal solution, but it should help you.

Regards!

2012/7/26 Ming-Ching Tiew <mctiew@xxxxxxxxx>:
> When a client X is connected to the server, is there a way for the server to
> know client X is connected via which bridge ?
--
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