ntop / n2n

Peer-to-peer VPN
GNU General Public License v3.0
6.05k stars 925 forks source link

can n2n support UDP multicast #1163

Open heli-boop opened 6 months ago

heli-boop commented 6 months ago

thanks for your great work! I want to know n2n 3.0 is support udp multicast

Logan007 commented 6 months ago

I want to know n2n 3.0 is support udp multicast

If I remember correctly, n2n is able to handle multicast packets. But they are dropped by default. -E at the edges lets them accept these packets. n2n network-wide, multicast is treated like broadcast so they are forwarded to every edge which then needs to filter itself.

heli-boop commented 6 months ago

I want to know n2n 3.0 is support udp multicast

If I remember correctly, n2n is able to handle multicast packets. But they are dropped by default. -E at the edges lets them accept these packets. n2n network-wide, multicast is treated like broadcast so they are forwarded to every edge which then needs to filter itself.

I use udp multicast in java,and start edge service with E;but still not receive udp package

heli-boop commented 5 months ago

I want to know n2n 3.0 is support udp multicast

If I remember correctly, n2n is able to handle multicast packets. But they are dropped by default. -E at the edges lets them accept these packets. n2n network-wide, multicast is treated like broadcast so they are forwarded to every edge which then needs to filter itself.

I’m sorry for the inconvenience. If I start with the “-E” parameter on the edge node, what should I fill in for the multicast address when I send a multicast?

Logan007 commented 5 months ago

Any multicast address (to which your application is interested in) should work. The multicast on virtual network adapter should work just as a with a regular network adapter.