martin-ger
martin-ger
Issue with DNS? Can you ping from behind the ESP to a remote IP?
No, only for the ESP-IDF, i.e. all sorts of ESP32s.
This in not included - and currently I hardly find any time to work on these projects. Anybody feel free to improve it. ;-)
If you need a special fixed MAC address, think you can add a call to esp_base_mac_addr_set() https://docs.espressif.com/projects/esp-idf/en/release-v3.0/api-reference/system/base_mac_address.html#functions about here: https://github.com/martin-ger/esp32_nat_router/blob/bc879f1320bc0d22c0742d1f3b12c09439e28281/main/esp32_nat_router.c#L473
You will need to edit the file and then to follow these instructions: https://github.com/martin-ger/esp32_nat_router#building-the-binaries
192.168.3.2 is the child? You cannot connect in that direction through a NAT router. The only option is port forwarding but this has to be configured on all downstream routers...
As said above: to connnect to a node behind a NAT router you either need a port forward (difficult if you have several levels of NAT and many nodes): `portmap...
Since release 2.6.0 NAPT/NAT is part of the standard distribution. See also this example: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/RangeExtender-NAPT/RangeExtender-NAPT.ino Okay, that's ESP8266, not ESP32... (don't know about ESP32)
Guess you can do that using Arduino as a component of the ESP-IDF: https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md In the IDF menuconfig use these setting also: https://github.com/martin-ger/esp32_nat_router#building-the-binaries
The NAT feature is actually included in ESP8266 Arduino, have a look here: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/RangeExtender-NAPT/RangeExtender-NAPT.ino