esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

NAT and UDP packets

Open slater0013 opened this issue 3 years ago • 5 comments

Hello,

Trying to use esp32_nat_router with a big wifi antenna connected to a WROOM_32U to extend my Drone range.

Installation is ok, configuration is ok.

But my drone is sending the video stream as an UDP feed. And I suppose the NAT router does not know to which client send it !

Is there any way to specify a "DMZ" NATed client that would receive every incoming packets, including UDP packets that are not in the NAT table.

Hope It's clear ?!

Thanks, GS.

slater0013 avatar Mar 04 '21 22:03 slater0013

No, there is no default client. You can define a portmap rule for any required UDP port.

martin-ger avatar Mar 05 '21 00:03 martin-ger

Ok ! Any Link to a documentation in order to achieve such rules ? Thanks !

slater0013 avatar Mar 05 '21 06:03 slater0013

Sorry for asking again, any hints how to add such port redirections ?

slater0013 avatar Mar 13 '21 15:03 slater0013

You have to modify the code: add the call(s) to ip_portmap_add() after esp32_nat_router.c#L367

martin-ger avatar Mar 13 '21 15:03 martin-ger