If you are unable to receive multicast on your server via Dektec card please follow the steps below. It is most likely related to reverse path filtering - this is a feature of the kernel that blocks multicast from addresses from which there is no route.
Reverse path filtering is a mechanism adopted by the Linux kernel, as well as most of the networking devices out there to check whether a receiving packet source address is routable.
So in other words, when a machine with reverse path filtering enabled receives a packet, the machine will first check whether the source of the received packet is reachable through the interface it came in.
ip maddr show |
ifconfig [Dectek’s port1 and port2 name] multicast |
tcpdump -c 10 dst host [source_multicast_address] and port [source_multicast_port] and multicast -i [Dektec’s port1 NIC name] |
cat /proc/sys/net/ipv4/conf/[nic_name]/rp_filter |
echo 0 > /proc/sys/net/ipv4/conf/[nice_name]/rp_filter |
./ffprobe udp://[source_multicast_address]:[source_multicast_port]?localaddr=[Dectek_port_ip_address] -loglevel 56 -show_error -protocol_whitelist udp |

#> python multicast_to_file.py
out: <output_file_name_here>
ip: <multicast_ip_here>
port: <multicast_port_here>
press Ctrl + C to stop the recording
Download: multicast_to_file.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import socketimport structfilename = raw_input ("out: ")ip = raw_input ("ip: ")port = int (input ("port: "))sock = socket.socket (socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)sock.setsockopt (socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)sock.bind (('', port))multicast_request = struct.pack ("4sl", socket.inet_aton (ip), socket.INADDR_ANY)sock.setsockopt (socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, multicast_request)out = open (filename, "wb")while (True): try: data = sock.recv (4096) print (ip + ":" + str (port) + " -> " + "data (" + str (len (data)) + "bytes)") out.write (data) except KeyboardInterrupt: out.close () sock.close () print ("Done") exit (0) |
#> ffprobe udp://<multicast_ip>:<multicast_port>