My ultimate goal is to setup IGMP snooping on a linux machine using netfilter hooks. This is for exploratory purposes to understand IGMP protocol.
The topology we are using is as follows:
| | | | | Host 1 |<---------------------> | Host 2 | | Linux | | Linux |
What we plan to do is create a Multicast group on Host2 so that we can send the multicast traffic from Host1 to Host2 and using the hooks on Host2 we can then check for membership messages (join, leaving, timing info, port etc) on Host2 and create our own Multicast Database similar to mdb.
How can we create a Multicast group ? (commands to use on linux ?) How can we attach interfaces or Host's to that multicast group ? How can we transfer packets between interfaces belonging to multicast group? Thanks