Repetidor WiFi con ESP32

Buenas, estoy trasteando con un ESP32 para ver si consigo hacer que funciona de repetidor. Mi idea es que se renueven la señal unos a otros y así pueda tener ESP32 lejos de la antena emisora original. Funciona hasta cierto punto, se conecta y me emite la 2da red, tambien puedo conectarme con el pc a la red extendida, pero no me deja acceder a internet... Una ayudita? :slight_smile:

#define IP_FORWARD 1

#include <WiFi.h>
#include <WiFiUDP.h>

// Set these to your desired credentials for ESP32 AP. */
const char *ssid = "Control Seguidores Plus";
const char *password = "12345678";
IPAddress apIP(128, 0, 15, 1);

// Setup credentials for original WiFi, that we plan to repeat
const char* ssidExt = "Control Seguidores";
const char* passwordExt = "12345678";

const byte DNS_PORT = 53;

// A UDP instance to let us send and receive packets over UDP
WiFiUDP Udp;
byte packetBuffer[512]; //buffer to hold incoming and outgoing packets

WiFiUDP Udp8;

// Update these with values suitable for your network.
IPAddress ip(192, 168, 15, 1); //Node static IP
IPAddress gateway(128, 0, 0, 1);
IPAddress subnet(255, 255, 0, 0);

void setup()
{
  Serial.begin(115200);
  Serial.println();

   WiFi.mode(WIFI_AP_STA);
   //WiFi.mode(WIFI_AP);

  WiFi.begin(ssidExt, passwordExt);
  WiFi.config(ip, gateway, subnet);

  //Wifi connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  WiFi.softAP(ssid, password);

  IPAddress myIP = WiFi.softAPIP();

  Udp.begin(DNS_PORT);
  Udp8.begin(DNS_PORT);
}

void loop()
{

  int noBytes = Udp.parsePacket();
  if ( noBytes ) 
  {

    Udp.read(packetBuffer, noBytes); // read the packet into the buffer

    IPAddress ip8(8, 8, 8, 8);
    Udp8.beginPacket(ip8, DNS_PORT); //NTP requests are to port 123
    Udp8.write(packetBuffer, noBytes);
    Udp8.endPacket();
    delay(100);

    int cb = Udp8.parsePacket();
    if (cb) {
      byte packetBuffer8[cb];
      Udp8.read(packetBuffer8, cb);
      Udp.beginPacket(Udp.remoteIP(), Udp.remotePort());
      Udp.write(packetBuffer8, cb);
      Udp.endPacket();
    }

  }
}

Hola amigos.
Tengo el mismo problema, hace una semana que trabajo en esa necesidad y no puedo.
Parece que nunca nadie consiguió hacer un ESP32 funcionar como repetidor/router con el IDE del arduino.

Algo no cuadra

IPAddress ip(192, 168, 15, 1); //Node static IP
IPAddress gateway(128, 0, 0, 1);

Por qué comienza la IP en 192 y la puerta de enlace en 128? La puerta de enlace debería de ser 192.0.0.1