martin-ger/MQTT_VPN

Multicast subscription

OmarEQMS opened this issue · 1 comments

Hi,
I was very happy with this implementation, because it offers us the hability to encapsulate IP over MQTT.
Unfortunately, I was implementing this code in a CentOS server inside a virtual machine of Azure, and the problem is that CentOS subscribe the new interface to a series of multicast addresses. As shown in the image below.
image

This problem causes that whenever I want to send something trough the interface it does not send anything (maybe because it needs to wait a response from the multicast packages). So a quick fix was to add a condition that only accepts packets that are within my ip range (10.x.x.x)
image

This causes that the IP multicast subscriptions get dropped and does not affect future packages comming in.
image

This is a quick fix, but it may be another solution to this.

Got the same Invalid ipv4 package message on my DigitalOcean Ubuntu. but it works normally