martin-ger / lwip_nat_arduino

lwip library with NAT feature for Arduino environment
59 stars 21 forks source link

Trasnparent bridge UDP packets from AP to STA #19

Open alessandrocescon opened 3 years ago

alessandrocescon commented 3 years ago

I have a tello quadcopter connected as AP whith IP 192.168.10.1 which act as DHCP and set first client to 192.168.10.2. Tello :

receive command UDP pachets on port 8889 IP 192.168.10.1 and reply OK or error; send telemetry UDP packets on port 8890 IP 0.0.0.0 to connected client 192.168.10.2 (instructions says to create a UDP server on client listening 0.0.0.0:8890); sends video stream UDP packets to on port 11111 to connected client 192.168.10.2 (instructions says to create a UDP server on client listening 0.0.0.0:11111); I am triing to set an ESP8266 between the drone and the phone acting as wifirepeater

With the standard configuration my client has IP 192.168.4.2 (esp station has 192.168.4.1).

192.168.4.2<---->ESP STA 192.168.4.1 <---> ESP AP CLI 192.168.10.2 <---> TELLO DRONE 192.168.10.1

I am able to send commands from client 192.168.4.2 to the drone 192.168.10.1 at port 8889 but telemetry and streaming packets sent from drone to the client (8890 and 11111) seems don't reach the client. Is there any configuration to trasparently forward packets sent from drone to phone at ports 8890 and 11111?

This is packet capture .pcap (wireshark) when phone is direcly connected to tello

https://drive.google.com/file/d/1xmGxSNjP1M5lHcuhfpnldQ16ZL2WHG8A/view?usp=sharing