Is it possible to Configure OpenNDS with wlan0 only

@bluewavenet
uci show opennds

opennds.@opennds[0]=opennds
opennds.@opennds[0].enabled='1'
opennds.@opennds[0].fwhook_enabled='1'
opennds.@opennds[0].gatewayinterface='wlan0'
opennds.@opennds[0].gatewayport='2050'
opennds.@opennds[0].maxclients='250'
opennds.@opennds[0].users_to_router='allow tcp port 53' 'allow udp port 53' 'allow udp port 67' 'allow tcp port 22' 'allow tcp port 80' 'allow tcp port 443'

uci show uhttpd

uhttpd.main=uhttpd
uhttpd.main.listen_http='0.0.0.0:80' '[::]:80'
uhttpd.main.listen_https='0.0.0.0:443' '[::]:443'
uhttpd.main.redirect_https='0'
uhttpd.main.home='/www'
uhttpd.main.rfc1918_filter='1'
uhttpd.main.max_requests='3'
uhttpd.main.max_connections='100'
uhttpd.main.cert='/etc/uhttpd.crt'
uhttpd.main.key='/etc/uhttpd.key'
uhttpd.main.cgi_prefix='/cgi-bin'
uhttpd.main.lua_prefix='/cgi-bin/luci=/usr/lib/lua/luci/sgi/uhttpd.lua'
uhttpd.main.script_timeout='60'
uhttpd.main.network_timeout='30'
uhttpd.main.http_keepalive='20'
uhttpd.main.tcp_keepalive='1'
uhttpd.main.ubus_prefix='/ubus'
uhttpd.defaults=cert
uhttpd.defaults.days='730'
uhttpd.defaults.key_type='ec'
uhttpd.defaults.bits='2048'
uhttpd.defaults.ec_curve='P-256'
uhttpd.defaults.country='ZZ'
uhttpd.defaults.state='Somewhere'
uhttpd.defaults.location='Unknown'
uhttpd.defaults.commonname='OpenWrt'

You posted wireless twice. Please post uci show network

This shows Luci should be available via https

You did not post uci show dhcp - I forgot to ask for it!

uci show network

network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.packet_steering='1'
network.globals.ula_prefix='fda2:8cb6:e23f::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan1' 'lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.device='wan'
network.wan.proto='dhcp'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.guestwifi=interface
network.guestwifi.proto='static'
network.guestwifi.ipaddr='192.168.8.1'
network.guestwifi.netmask='255.255.255.0'
network.guestwifi.dns='8.8.8.8' '1.1.1.1'
network.guestwifi.device='wlan0'

uci show dhcp

dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].address='/status.client/192.168.8.1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.lan.dhcp_option_force='114,http://status.client'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.guestwifi=dhcp
dhcp.guestwifi.interface='guestwifi'
dhcp.guestwifi.start='100'
dhcp.guestwifi.leasetime='12h'
dhcp.guestwifi.limit='120'

Dear @bluewavenet, any luck?

I'm not your paid technical support. I'll have a look at your configs and make a recommendation when I have time.
While you are waiting you can do some research on basic ip routing and how OpenWrt network configs work.

Sorry @bluewavenet , actually I am still searching its solution,don't get me wrong I was just asking if you found anything wrong in shared script.

Thanks.

@frollic , @trendy could you guys please help me on it.

Thanks

You have not configured a guest network.
Later today when I have time I will give you a list of commands to enter to create one.

1 Like

You could try the following commands. According to your configs, this should work. I tried it here (albeit on different hardware) and it works fine.

# Firewall settings
uci add_list firewall.@zone[0].network='glan'

# Bridge settings
uci set network.gbr=device
uci set network.gbr.name='br-guest'
uci set network.gbr.type='bridge'

#Network settings
uci set network.glan=interface
uci set network.glan.device='br-guest'
uci set network.glan.proto='static'
uci set network.glan.netmask='255.255.255.0'
uci set network.glan.ipaddr='192.168.2.1'

#DHCP settings
uci set dhcp.glan=dhcp
uci set dhcp.glan.interface='glan'
uci set dhcp.glan.start='5'
uci set dhcp.glan.limit='245'
uci set dhcp.glan.leasetime='1h'
uci set dhcp.glan.dhcpv6='disabled'
uci set dhcp.glan.ra='disabled'

#Wireless settings
uci set wireless.default_radio0.network='glan'

#openNDS settings
uci set opennds.@opennds[0].gatewayinterface='br-guest'


#Restart services
service firewall restart
service dnsmasq restart
service network restart
service opennds restart

#If it locks up or crashes, return to the previous settings by powering down and back up.

#Finally if all seems well after this (ie it did not lock up or crash), do:
uci commit firewall
uci commit dhcp
uci commit network
uci commit wireless
uci commit opennds

Dear @bluewavenet , Thank you so much for time and efforts. i have applied above instruction and the results are below
image


Unable to connect with Open-Guest wifi

Thanks.

This list of commands is very similar to what Luci would do in the background so Luci may well get very confused, so best not to run it while we are in the middle of configuring via the command line.

It looks like it did not lock up on you, so, so far so good!

The "udhcpc: no lease, failing" error you are seeing is most likely because you do not have a "wan" connection to an Internet feed.
You need to connect the wan port of the openNDS router to a lan port of your ISP router, before doing anything else.

Once you have done that, power down and power up the openNDS router and re-apply the commands in my list.

Then show the output of ifconfig so we can debug this a little more.

It's already attached, lan already working with internet, also 5g internet is working, we are trying to implement openNDS with Open-Guest 2.4 wifi

Thanks

Yet you refuse to follow additional instructions designed to help debug your problem or take heed of an obvious error message shown on your terminal screen.

My initial list of commands work here on a similarly configured system. There is probably some small difference in your config but you do not seem to be interested in finding it.
I am wasting my time here.
I suggest you look elsewhere for how to set up a functioning guest network.
Once you have such a network, you will find openNDS will manage it for you.

Okay, let me explain more,
I have setup successfully the guest network using https://www.youtube.com/watch?v=b7vTY1k8iGo
After it I have setup the opennds given using
https://youtu.be/b7vTY1k8iGo
It's working fine with lan but with guest wifi it's not working this is the issue.

Thanks

Yes indeed, and I have told you what you need to to to fix it, yet you keep repeating that the issue is that the guest wifi does not work.

You appear to have no knowledge of OpenWrt networking, yet prefer to pretend that you do after watching a very outdated video.

As I said previously, you are wasting my time.

Try reading this:

Dear @bluewavenet ,
Thanks for helping me,
I have reconfigure all settings according above shared configuration, after configuration guest network working fine after apply opennds, its stopped working.
the problem same as previous,

You know what i am thinking. its working fine on lan due to i am able to access localhost there, due to blocked local ip its not working on guest network
or
We have different ip configuration for guest so its not able to access 192.168.1.1

so idea is just unblock 192.168.1.1:2050 on 192.168.3.X

Please suggest accordingly

Thanks a lot

I'm afraid you have no idea what you are talking about.

Let's summarise this thread.
Your requirement:

So, you want a Guest network, on 2.4GHz controlled by openNDS, leaving the rest of the network unrestricted.

For this you need to configure a Guest network with its own ip subnet, available only on the 2.4GHz wireless.

I have given you a tested and fully functional configuration for a guest network, that will work on your system, at worst, with only small modifications.

You have chosen to half heartedly try this and show no interest in testing/modifying to make it work on your router.
Instead, you just bleat about it not working and say you have followed a very outdated YouTube video so therefore it is everybody's fault but yours that it does not work.

I have posted a link to an OpenWrt user guide showing (yet again) how to create a Guest network, and (yet again) you have ignored the information given to you.

I had to ask repeatedly for information and have still not received all of it.

Finally, you have come up with a totally ludicrous theory about "blocking ip addresses" that serves only to show you have not even the slightest knowledge about ip routing or how a captive portal works.

I am always happy to help people understand, whether beginners, or experienced trying out something new to them. But I am not happy to be asked over and over and to be ignored again and again. If you disagree with my advice, tell me it's wrong, if you don't understand, tell me and I will try to explain in easier terms.

Read these links and don't come back unless you have proper questions about "Is it possible to Configure OpenNDS with wlan0 only".

Link 1:

Link 2:
https://opennds.readthedocs.io/en/stable/howitworks.html

Sorry @bluewavenet , there is a misunderstanding, the whole post I have given before was all about Guest Wi-Fi basics which provided by you, I was already reset my router and apply new configuration using Guest Wi-Fi basics then I shared my thoughts with you

That's it.
I am a beginner and also not perfect in English.

Thanks for your time my friend :pray:

Please make sure you read ALL of each post I make and ask for clarification if you do not understand any part.

Now, as I asked previously, please show the output of the command ifconfig