OpenWRT abilities

Looking to flash OpenWRT

But I need following features:

  • Captive portal with simple CAPTCHA or additional password
  • Adblocking on DNS level

Device 512/256MB (RAM, Flash)

Is it possible to do on OpenWRT? If so, can you share some details?

Yes those things are possible, although captive portals are often a bit difficult to configure (steep learning curve).

Adblocking may need more memory.

What is the device? (brand + model)

2 Likes

Can you explain why please?

RAM? Flash?

https://openwrt.org/toh/gl.inet/gl-mt3000

1 Like

You can change DNS server to adblocking one even on minimal install.

2 Likes

Not sure where you got these numbers from, but the GL-MT3000 has 512MB RAM and 256MB NAND Flash (see https://www.gl-inet.com/products/gl-mt3000/#specs)

1 Like

Sorry, copied wrong string :frowning:

Can I set https://dns.adguard-dns.com/dns-query or tls://dns.adguard-dns.com as dns resolver?

You need some DoH proxy like stubby, for https:: or set those adguard classical dns servers as forwarders in dhcp-dns conf section.
But if your router has space and powers you can have more detailed control.

See also here https://forum.openwrt.org/t/how-to-use-dns-adguard-com/

1 Like

Keep in mind your router's storage can always be extended by a flash drive, if there's an USB port.

1 Like

What to do after that?

This is unencrypted information. Unfortunately no go for me…

We can presume this device is intended to be a travel router based on the requisite it can handle a captive portal?

I did… in the first response.

1 Like

Darn it.

I caught that and changed the reply.

Yes. On official firmware >3.* there was this option…

For DoH follow https://openwrt.org/docs/guide-user/services/dns/doh_dnsmasq_https-dns-proxy

would be nice to close the issue.

DoH solved, how to setup Captive Portal?

@ed8 it is commands? Or part of script?

# Configure DoH provider
while uci -q delete https-dns-proxy.@https-dns-proxy[0]; do :; done
uci set https-dns-proxy.dns="https-dns-proxy"
uci set https-dns-proxy.dns.bootstrap_dns="8.8.8.8,8.8.4.4"
uci set https-dns-proxy.dns.resolver_url="https://dns.google/dns-query"
uci set https-dns-proxy.dns.listen_addr="127.0.0.1"
uci set https-dns-proxy.dns.listen_port="5053"
uci commit https-dns-proxy
service https-dns-proxy restart

I have no idea what that reply means.

I, certainly, was not asking if OpenWrt can handle captive portals; looks like something was lost in translation.
I'll rephrase.
Do you intend to use the device as a travel router?

No. It is my home router

uci is a command line utility indeed.
ps: all needed options for https-dns-proxy are provided through Web UI as well