Hey, On Sat, Apr 24, 2021 at 3:03 AM <[email protected]> wrote:
> > *Add the ip to the allowed_hosts variable (look this up in the README of > ansible-openwisp2).* > > I edited the file opt \ openwisp2 \ openwisp2 \ settings.py and I added > the IP of the openwisp server (192.168.23.4) to the ALLOWED_HOSTS field > with the following format: > > > > ALLOWED_HOSTS = [ > > 'openwisp2srv','192.168.23.4', > > ] > > > > but when I want to access the Openwisp2 web panel, only the > https://openwisp2srv/admin address continues to work while the address > https://192.168.23.4/admin produces the usual error "404 Not Found" > Have you run the playbook again? Ensure the playbook runs smoothly and ensure the nginx and /opt/openwisp2/settings.py config are updated (they must contain the new address). > > > *Then you can configure openwisp-config to point to the ip instead of the > name.* > > I guess you are referring to the url field of the > openwisp-config agent configuration to distribute to the openwrt APs to > connect them to the Openwisp server. Quite right? > Yes. *To export a configuration, go into advanced mode, copy the JSON data, to > import it do the same but paste the data.* > > What do you mean by Advanced Mode? Maybe the "Preview > Configuration" item found in the OpenWisp web panel? > No. Go to the device page, then config tab, scroll down and on the right there's a button to edit the config in advanced mode, there you can copy the JSON of the config. > *Any assigned template will have to be replicated manually.* > > Do you mean they are not copied to the configuration backup? Or do they > just need to be reapplied for each AP in the Device section? > Reapplied unless the templates are flagged as default and they should be already be applied automatically. > > *DHCP configuration*Also I wanted to set up a dhcp server on Openwisp2, > and I saw that there is documentation to implement it. But I have this > need: the dhcp server must only work for devices and PCs connected to the > Openwrt APs connected to it. On the same network, if I connect a PC > connected by cable to the same network where the Openwrt ap's are connected > and configure it with a dynamic tcp / ip configuration, Openwisp does not > have to assign any ip to it. It's possible? > This is more a networking / openwrt question than an openwisp question and I'm not sure of the right answer, from what I know having 2 DHCP servers in the same LAN will produce weird results unless you're able to separate the two in some way. I hope this helps. Federico -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6%2BiVb%2B_i2%2BA0f7o1O7tgG4t54eD%2BP%3DWWNkd%3DfgDzzq5mw%40mail.gmail.com.
