Confirm Correct Usage
Posted: Wed Aug 19, 2020 12:21 am
Hi All,
I have an ESP32 board.
An external device connects to the ESP32 board via PPP. The ESP32 board also connects the internet via an ethernet connection.
I am trying to provide an internet connected to the PPP-connected device via the ESP32's ethernet connection.
I have decided to use your experimental NAPT implementation in the esp-lwip repository from the link here.
https://github.com/espressif/esp-lwip/c ... 17a5577e3f
I did however have severe difficulty getting NAPT to route packets from the PPP connection to the wider internet ethernet-based connection. I believe it is because of the statically-chosen IPs used for the PPP module whereas the LWIP forwarding looks at the IPs and netmasks (which for PPP is I assume all set bits).
To get this working, I had to comment out the following definit in the 'lwipopts.h' file.
#define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook
I also had to set the following define:
#define ESP_IP4_ROUTE 0
Now I am wondering, what are the consequences of doing so? Why were these included in the first place.
I would like to ensure that this will not cause any issues down the line.
Regards,
Alex
I have an ESP32 board.
An external device connects to the ESP32 board via PPP. The ESP32 board also connects the internet via an ethernet connection.
I am trying to provide an internet connected to the PPP-connected device via the ESP32's ethernet connection.
I have decided to use your experimental NAPT implementation in the esp-lwip repository from the link here.
https://github.com/espressif/esp-lwip/c ... 17a5577e3f
I did however have severe difficulty getting NAPT to route packets from the PPP connection to the wider internet ethernet-based connection. I believe it is because of the statically-chosen IPs used for the PPP module whereas the LWIP forwarding looks at the IPs and netmasks (which for PPP is I assume all set bits).
To get this working, I had to comment out the following definit in the 'lwipopts.h' file.
#define LWIP_HOOK_IP4_ROUTE_SRC ip4_route_src_hook
I also had to set the following define:
#define ESP_IP4_ROUTE 0
Now I am wondering, what are the consequences of doing so? Why were these included in the first place.
I would like to ensure that this will not cause any issues down the line.
Regards,
Alex