-->
Page 1 of 14

WiFi Repeater (aka. WiFI NAT Router) with Monitoring Port

PostPosted: Wed Dec 21, 2016 7:19 pm
by martin_g
esp_wifi_repeater - A full-functional WiFi Repeater

This is a proof of concept implementation of a WiFi NAT router on the esp8266. It can be used as range extender for an existing WiFi network. Throuput is reasonable, at least Youtube videos work faily well.

The esp acts as STA and as soft-AP and transparently forwards any IP traffic through it. As it uses NAT no routing entries are required neither on the network side nor on the connected stations. Stations are configured via DHCP in the 192.168.4.0/24 net and receive their DNS responder address from the existing WiFi network.

The router can be configured via a console interface and the config can be stored in flash. The router also allows for remote monitoring of the complete traffic, e.g. using Wireshark.

Possible use cases:
  • Battery powered outdoor wifi range extender
  • Temporary guest WiFi network for network that don't support multiple SSIDs
  • WiFi-probe for observing IP-traffic of smartphones or IoT devices

To build it you will need the esp-open-sdk and an adaped version of the lwip TCP/IP-stack.

Sources and binaries can be found here: https://github.com/martin-ger/esp_wifi_repeater

Re: WiFi Repeater (aka. WiFI NAT Router) with Monitoring Por

PostPosted: Thu Dec 22, 2016 12:59 am
by reaper7
Nice work!
tested, work very good :D

tnx!

P.S. it is possible to add ability to change IP address of AP interafce (configurable via user_config.h)

P.S. P.S. I thinking about full address configuration, not only 192.168.x.0
I have a small drone with address 172.16.x.x with very weak signal ... Your esp repeater is a good option for extend range :)
...so, it would be good to configure full net: x.x.x.0 (of course AP always have x.x.x.1)

Re: WiFi Repeater (aka. WiFI NAT Router) with Monitoring Por

PostPosted: Thu Dec 22, 2016 4:13 am
by martin_g
"set network <a.b.c.d>" on the console now sets the internal network's address to a.b.c.0/24. Effective after save and reset.

Re: WiFi Repeater (aka. WiFI NAT Router) with Monitoring Por

PostPosted: Fri Dec 30, 2016 7:18 pm
by Ribeiro Santos
Excellent!!! Thanks a lot!

Using speedtest.net, 2 meters far the router, it shows Down: 6.03Mbps and Upload: 4.83Mbps.

I'm trying to change the AP name but without success. I just uploaded the .bin files from your github.

CMD>show
STA: SSID meikein PW:OlaEstaEaKEY_001 [AutoConnect:1]
AP: SSID von PW:von23 [Open:0] IP:192.168.4.1/24
CMD>save
...
CMD>reset
...

Again: thanks a lot by sharing your work.