Dumb Acess Point - DHCP on LAN - ImageBuilder

Hi Everybody,

I'm looking to make my own Image of LEDE on EW1200 (Afoundry).
Everything works well with Luci ...

So, now i'm looking to configure it by default on "Dumb AP".
I've started with this link : https://wiki.openwrt.org/doc/recipes/dumbap

But, how to add it when building the image:

  • Disable DHCP Server
  • Disable Firewall
  • Enable DHCP IP on LAN (Plug&Play)
  • Be able with SSH from LEDE to reach internet from LAN

Thanks :wink:

Ok i've found a way to copy file as described here :
LEDE Image Builder => FILES Variable Chapter

If you have any informations on file i need to edit/add


Putting command in "/etc/rc.local" is a good way ?

I think this is a more appropriate way of doing it: How to add a interface in /etc/config/network when I complie

Yes, so, how can i do if i want to disable DHCP Server ?

Edit: Can i do everything on my router and export configuration to imagebuilder ?

I'm just guessing here because I never did that, but assuming we take the same path as the one suggested by @thess , I think that yes, you would export your router's actual /etc/config/dhcp file onto the .../buildroot/files/etc/config/ root of your actual build.

Ok, but how to something like that :
/etc/init.d/firewall disable
(Disable Firewall)

I know that it's in the recipe, but I'm pretty sure that you don't really have to disable the firewall since everything occurs on LAN. Your requirements could differ upon your use-case of course.

Can't you just build your image without the firewall at all ?
make menuconfig => Base system => [*] firewall

Add this line to your /etc/rc.local

/etc/init.d/firewall disable
exit 0

It will be executed when the router starts


I can't fully answer your question, but this is how I usually build image with custom configuration:

  • create new folder(s) inside lede build folder called files/etc/uci-defaults

  • create a new file with any name (for example my_conf) and put it inside newly created uci-defaults folder

  • edit the file to make it like this:

    uci set dhcp.lan.ignore='1'
    uci commit dhcp
    /etc/init.d/firewall disable
    exit 0

Once image flashed you can always find the script inside -> /rom/etc/uci-defaults/my_conf

I hope that helps :slight_smile:

Hi, I've resolve once this issue with simple lua script, which should be executed ones on the first startup. I hope it will help. This script smartly scans your system and turn your device to real L2 Access Point with only one lan network with all switch port commutated to it. Run it like ./switch.lua -e true