ESP-MESH ip forwarding to external wifi node.

clementfumey
Posts: 2
Joined: Wed Jun 16, 2021 8:50 am

ESP-MESH ip forwarding to external wifi node.

Postby clementfumey » Wed Jul 07, 2021 12:10 pm

Seems my previous Post in the forum was not in the right place. Here it is

Hello,

Goal: I am trying to give access to internet to a Wifi node (smartphone for example) through an ESP-MESH network.

My current work is based on esp-idf branch v4.3

The idea is to have the ESP-MESH network with several nodes connected to internet (ip_internal_network example in esp-idf). On some mesh node we have a "twin" ESP32 that act as Wifi AP for external nodes. The twins ESP32 are then connected using UART through a SLIP interface with static IP addresses (slip-modem example in esp-idf).

On both nodes, IP_FORWARDING and NAPT is enable. On the AP node, it successfully forward packet from the Wifi AP to the SLIP interface. But on the mesh node, the incoming packet on the SLIP interface is not forwarded to the esp-mesh. It seems lwip do not know what is the default gw for ip adresses he doesn't know.

Did someone already manage to make this king of configuration work (IP Forwarding between esp-mesh and another interface (eth?)) ? Can you think of some tests I should try to find out where the problem is ? Is there any other solution or suggestions about a way to achieve my goal ?

Regards

Who is online

Users browsing this forum: Bing [Bot], jsmith56x and 283 guests