old_guy_with_a_pineapple Posted December 12, 2021 Share Posted December 12, 2021 Hi, everyone! I'm playing back again with the Nano I purchased several years ago, running on firmware 2.7.0. In my attack vector, I need to be able to shut down the open access point programmatically. I tried uci set wireless@wifi-iface[0].disabled='1' uci commit wireless #also tried uci set wireless@wifi-iface[0].disabled=1 uci commit wireless #also tried uci set wireless@wifi-iface[1].disabled='1' uci commit wireless #also tried uci set wireless@wifi-iface[1].disabled=1 uci commit wireless But neither of those commands seemed to shut down the open AP or the management AP. So, my questions are: @wifi-iface[0] stands for the management AP or the open AP? @wifi-iface[1] stands for the management AP or the open AP? How can I programmaticaly (from bash, php or even better by python) shut down the open access point? Best regards Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 12, 2021 Share Posted December 12, 2021 [0] should be the open AP You forgot a . (dot) in the set command, try this: uci set wireless.@wifi-iface[0].disabled='1' wifi reload service network reload uci commit wireless uci commit network 1 Quote Link to comment Share on other sites More sharing options...
old_guy_with_a_pineapple Posted December 12, 2021 Author Share Posted December 12, 2021 Thank you SO much for answering this fast, @dark_pyrro! The missing dot (.) was indeed a typo in my post, so sorry for that. This worked for me: uci set wireless.@wifi-iface[0].disabled='1' uci commit wireless wifi reload wifi Do you know if the service network reload andthe uci commit network are mandatory, and if so, could you please explain why? Thanks sincerely =D Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 12, 2021 Share Posted December 12, 2021 Don't know, it's in my "best practice" notes. If it's possible to slim it further, then it's of course an alternative (or more correct) way to do it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.