pgj / freebsd-wifibox

wifibox: Use Linux to drive your wireless card on FreeBSD
BSD 2-Clause "Simplified" License
159 stars 12 forks source link

mDNS and other multicast UDP packets #40

Closed mkohanim closed 1 year ago

mkohanim commented 1 year ago

Hi Gábor,

Any idea how we can pass through mDNS or other multicast packets (such as UPnP)? Currently, all TCP and direct UDP packets work fine but no UDP multi/broadcast packets work.

Thank you.

pgj commented 1 year ago

It should just be matter of the iptables tables in use, I believe. I have not tried any of these personally, though.

mkohanim commented 1 year ago

Thank you Gábor. I have been looking but a little outside of my expertise. Basically, I need to forward the following from wlan0 to eth0: src: any dest: 224.0.0.251 protocol: udp dest port: 5353

pgj commented 1 year ago

I have just learned that mDNS and NAT do not go well together. But there are projects like mdns-repeater to provide a workaround.

mkohanim commented 1 year ago

This is precisely what I need! How do I get it installed on the guest?

With kind regards,


Michel Kohanim CEO

(p) 818.631.0333 http://www.universal-devices.comhttp://www.universal-devices.com/


From: PÁLI Gábor János @.> Sent: Sunday, October 9, 2022 2:39 PM To: pgj/freebsd-wifibox @.> Cc: Michel Kohanim @.>; Author @.> Subject: Re: [pgj/freebsd-wifibox] mDNS and other multicast UDP packets (Issue #40)

I have just learned that mDNS and NAT do not go well together. But there are projects like mdns-repeaterhttps://github.com/geekman/mdns-repeater/ to provide a workaround.

— Reply to this email directly, view it on GitHubhttps://github.com/pgj/freebsd-wifibox/issues/40#issuecomment-1272633397, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPNSZLSE6NYHAE526LTWCM3Q7ANCNFSM6AAAAAARA3BUKA. You are receiving this because you authored the thread.Message ID: @.**@.>>

pgj commented 1 year ago

You will have to create an Alpine Linux package and have it installed during the build. Or use a different VM image with your favorite Linux flavor where you can just compile the code and run it.

pgj commented 1 year ago

For testing, you can also compile the code (statically) somewhere else and copy to the guest over one of the shared (VirtFS) folders. Then use the console command to enter the guest and run the application.

mkohanim commented 1 year ago

Thank you Gábor. I just do not have the expertise and resources.

With kind regards,


Michel Kohanim CEO

(p) 818.631.0333 http://www.universal-devices.comhttp://www.universal-devices.com/


From: PÁLI Gábor János @.> Sent: Sunday, October 9, 2022 2:51 PM To: pgj/freebsd-wifibox @.> Cc: Michel Kohanim @.>; Author @.> Subject: Re: [pgj/freebsd-wifibox] mDNS and other multicast UDP packets (Issue #40)

For testing, you can also compile the code (statically) somewhere else and copy to the guest over one of the shared (VirtFS) folders. Then use the console command to enter the guest and run the application.

— Reply to this email directly, view it on GitHubhttps://github.com/pgj/freebsd-wifibox/issues/40#issuecomment-1272635403, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADMVJPPMO4UUN2YI5VA6T5LWCM46DANCNFSM6AAAAAARA3BUKA. You are receiving this because you authored the thread.Message ID: @.**@.>>

pgj commented 1 year ago

This has been included in the guest image in https://github.com/pgj/freebsd-wifibox-port/commit/71ebb910c20c65e03caf7489ae8484c485aa07c4 hence closing this ticket.