Hello everyone.
In my Openwisp2 configuration both the web console and the Openwrt ap points to the Openwisp2 server name instead of its ip. How do I make them both point to the ip address instead? It becomes very cumbersome to have to edit the hosts file for each Openwrt Access Point. Also I wanted to know how to export the configuration and import it. Thanks as always
--
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 openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/9b68c5ad-1c4c-4ac6-8443-5386d77233acn%40googlegroups.com.
Hi,
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"
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?
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?
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?
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?
Thanks
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Federico Capoano
Inviato: martedì 20 aprile 2021 18:00
A: open...@googlegroups.com
Oggetto: Re: [openwisp] ip instead of the name
--
You received this message because you are subscribed to a topic in the Google Groups "OpenWISP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openwisp/Zv4esBndP9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6Lth2pA8eFhLLdx8c0OLLCZNrcfbB2SsaPajB1O9EN2NA%40mail.gmail.com.
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"
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?
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?
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?
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?
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Federico Capoano
Inviato: sabato 24 aprile 2021 17:35
A: open...@googlegroups.com
Oggetto: Re: [openwisp] ip instead of the name
Hey,
On Sat, Apr 24, 2021 at 3:03 AM <leoni...@gmail.com> 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).
Hi,
I edited the host file by replacing the string openwisp2srv with its ip address 192.168.23.4.
I edited the playbook.yml file and in correspondence with the hosts field: I replaced the string openwisp2srv with its ip address 192.168.23.4. Then I launched the playbook with the following command: ansible-playbook -i hosts playbook.yml -u root -k
The operation ended perfectly. But when I enter the url https://192.168.23.4/admin in the browser, I get an error "Cannot reach this page"
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 a topic in the Google Groups "OpenWISP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openwisp/Zv4esBndP9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openwisp+u...@googlegroups.com.
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.
The operation ended perfectly. But when I enter the url https://192.168.23.4/admin in the browser, I get an error "Cannot reach this page"
Hi, in fact it was a nginx problem. I took a drastic step, uninstalled and then reinstalled nginx and then relaunched the playbook and it's gone.
Da: open...@googlegroups.com <open...@googlegroups.com> Per conto di Ajay Tripathi
Inviato: lunedì 26 aprile 2021 17:41
A: OpenWISP <open...@googlegroups.com>
Oggetto: Re: [openwisp] ip instead of the name
Hi,
--
You received this message because you are subscribed to a topic in the Google Groups "OpenWISP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openwisp/Zv4esBndP9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/dc603e3d-efc2-4ea4-bef5-2f26ed95452bn%40googlegroups.com.