How to allow multicast packets get to my CentOS guest, over NAT?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
davis8988
Posts: 3
Joined: 11. Jun 2019, 17:49

How to allow multicast packets get to my CentOS guest, over NAT?

Post by davis8988 »

Hello,
Is there a way my CentOS guest can receive multicast packets when configured with network: 'NAT ' ? (not 'NAT Network')

Host: Windows 7
Guest: CentOS Linux release 7.5.1804 (Core)
Network: NAT
VirtualBox: 5.2.20

My windows host is receiving all these multicast packets with specified port, and I configured the port-forwarding settings to pass the same port to the guest machine. But still when I run
tcpdump
I don't see any packets.


How can I have my guest receive multicast packets over NAT?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to allow multicast packets get to my CentOS guest, over NAT?

Post by mpack »

Quick answer: no. At least not to my knowledge. If you port forward then the host loses the use of those ports, so this cannot be used to extend a multicast protocol.

Anyway, are you sure that "multicast" is TCP and not UDP? AFAIK TCP doesn't support multicast, and a tcp dump (I assume) will not see UDP packets.

The best solution, if possible, would be to use bridged networking instead of NAT.
davis8988
Posts: 3
Joined: 11. Jun 2019, 17:49

Re: How to allow multicast packets get to my CentOS guest, over NAT?

Post by davis8988 »

Hi,
Thanks for your answer. You are right the command I later found out to help me catch udp packets is:

Code: Select all

tcpdump -i lo udp

I ended up bridging anyway.
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to allow multicast packets get to my CentOS guest, over NAT?

Post by fth0 »

Despite its name, tcpdump captures any network traffic (like Wireshark). It's typically pre-installed on most Unix OSs (Linux, macOS, xBSD).
Post Reply