[openwisp] Re: openVPN-server

2018-08-28 Thread Federico Capoano
One more thing: ensure the firmware image contains a pre-existing 
/etc/config/openvpn file, even an empty one is fine, otherwise when a new 
configuration is downloaded the OpenVPN process won't be started, you will 
have to manually launch it but that would invalidate all the work towards 
automation we are doing.

Federico


On Tuesday, August 28, 2018 at 1:38:06 PM UTC+2, Federico Capoano wrote:
>
> Hi Pari and welcome,
>
> this process is not documented yet (we have a ticket for it 
> <https://github.com/openwisp/openwisp2-docs/issues/44>), the process is 
> roughly the following:
>
>- ensure OpenVPN is included in your OpenWRT firmware image or install 
>it manually on your devices (the former option is recommended)
>- install OpenVPN on the server, you can use this ansible role if you 
>like: https://github.com/Stouts/Stouts.openvpn
>- import the CA, and the server certificate in OpenWISP
>- create a new VPN server, select the CA and server certificate just 
>imported, copy the configuration parameters generated by ansible
>- now create a new template of type "VPN-client"
>   - ensure the auto-cert option is enabled so OpenWISP will generate 
>   client x509 certificates automatically
>   - enable "default template" option if you want the VPN to be 
>   enabled on all the devices of that organization
>   - if you want to use this VPN for all the organizations leave the 
>   "organization" parameter empty
>   - leave the conf empty, hit "save and continue", now you can tweak 
>   the client VPN conf if you need
>
> After all these passages, devices which will have the new VPN template 
> will get the OpenVPN conf and the x509 certificate automatically created by 
> OpenWISP. This does not assure the VPN will work straightaway, you may need 
> to do some testing and tweaking before getting it right.
>
> If you need to do some tests on the OpenWRT side, I suggest doing it on 
> the device directly first and once you have a configuration that works you 
> copy it into the OpenWISP web UI.
>
> To debug, check the logs of both clients and server.
>
> I hope this helps!
> Let me know how it goes and if anything is not clear don't hesitate to ask.
>
> Federico
>
>
> On Tuesday, August 28, 2018 at 1:11:42 PM UTC+2, pari khan wrote:
>>
>> Hi,
>> I am new to openwisp.
>> with regards to openwisp I am able to get it up and running.I was able to 
>> connect few APs to openwisp controller. My concern is I want to understand 
>> how can we  install openvpn server .Is CA and certificates related to 
>> openvpn server? Can we use the keys installed as part of openvpn server for 
>> CA and certificates options in openwisp, I mean can we import or we have to 
>> create new ?
>>
>> little confused with these options, if I could get any documents or 
>> guidance will be thankful.
>>
>> Kind Regards,
>> pari
>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: openVPN-server

2018-08-28 Thread Federico Capoano
Hi Pari and welcome,

this process is not documented yet (we have a ticket for it 
), the process is 
roughly the following:

   - ensure OpenVPN is included in your OpenWRT firmware image or install 
   it manually on your devices (the former option is recommended)
   - install OpenVPN on the server, you can use this ansible role if you 
   like: https://github.com/Stouts/Stouts.openvpn
   - import the CA, and the server certificate in OpenWISP
   - create a new VPN server, select the CA and server certificate just 
   imported, copy the configuration parameters generated by ansible
   - now create a new template of type "VPN-client"
  - ensure the auto-cert option is enabled so OpenWISP will generate 
  client x509 certificates automatically
  - enable "default template" option if you want the VPN to be enabled 
  on all the devices of that organization
  - if you want to use this VPN for all the organizations leave the 
  "organization" parameter empty
  - leave the conf empty, hit "save and continue", now you can tweak 
  the client VPN conf if you need
   
After all these passages, devices which will have the new VPN template will 
get the OpenVPN conf and the x509 certificate automatically created by 
OpenWISP. This does not assure the VPN will work straightaway, you may need 
to do some testing and tweaking before getting it right.

If you need to do some tests on the OpenWRT side, I suggest doing it on the 
device directly first and once you have a configuration that works you copy 
it into the OpenWISP web UI.

To debug, check the logs of both clients and server.

I hope this helps!
Let me know how it goes and if anything is not clear don't hesitate to ask.

Federico


On Tuesday, August 28, 2018 at 1:11:42 PM UTC+2, pari khan wrote:
>
> Hi,
> I am new to openwisp.
> with regards to openwisp I am able to get it up and running.I was able to 
> connect few APs to openwisp controller. My concern is I want to understand 
> how can we  install openvpn server .Is CA and certificates related to 
> openvpn server? Can we use the keys installed as part of openvpn server for 
> CA and certificates options in openwisp, I mean can we import or we have to 
> create new ?
>
> little confused with these options, if I could get any documents or 
> guidance will be thankful.
>
> Kind Regards,
> pari
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Openwisp2 instalation (testing purpose) error

2018-08-27 Thread Federico Capoano
Great to know it worked for you César, I added a link to this vagrant conf 
in the documentation:
http://openwisp.io/docs/user/quickstart.html#install-the-openwisp-2-server

Thanks!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: [ImproperlyConfigured] Unable to load the SpatiaLite library Extension

2018-08-25 Thread Federico Capoano
Thanks for reporting Ajay, I improved the documentation of the geospatial
module of of OpenWISP:
https://github.com/openwisp/django-loci/commit/f4f6f6976cb2b1cf58fd9b7db6a70ff79afb7665,
I hope this will help future contributors like you avoiding this issue.

Federico

On Sat, Aug 25, 2018 at 9:55 AM Ajay Tripathi  wrote:

> It's solved.
> Had to set `SPATIALITE_LIBRARY_PATH = 'mod_spatialite.so'` with
> `libsqlite3-mod-spatialite` installed.
>
>
> On Saturday, August 25, 2018 at 11:50:43 AM UTC+5:30, Ajay Tripathi wrote:
>>
>> While trying to setup django-loci[1],
>> I am following installing for development guide[2].
>> When i read step: `./manage.py migrate`
>> I get error: `django.core.exceptions.ImproperlyConfigured: Unable to load
>> the SpatiaLite library extension "libspatialite.so.7"`
>> Find Traceback[3].
>> Following advice from djangoproject[4], i installed `sudo apt-get install
>> libsqlite3-mod-spatialite` & added `SPATIALITE_LIBRARY_PATH =
>> 'mod_spatialite' ` to `settings.py`.
>> I get error: `django.core.exceptions.ImproperlyConfigured: Unable to load
>> the SpatiaLite library extension "mod_spatialite"`
>> Find Traceback[5].
>> Adding `libspatialite-dev` and/or redis hasn't helped.
>>
>> Any help with the setup is appreciated.
>> Thank You.
>> Ajay Tripathi (atb00ker)
>> ---
>> [1]: https://github.com/openwisp/django-loci
>> [2]: https://github.com/openwisp/django-loci#installing-for-development
>> [3]: http://paste.debian.net/plain/1039230
>> [4]: https://code.djangoproject.com/ticket/26137
>> [5]: http://paste.debian.net/plain/1039232
>>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Openwisp2 instalation (testing purpose) error

2018-08-24 Thread Federico Capoano
Great stuff Marco, remind me to add a link to that in the documentation 
.

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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Openwisp2 instalation (testing purpose) error

2018-08-24 Thread Federico Capoano
If you log in with the same user and same password with SSH, can you log in?
It's an authentication issue, not related to OpenWISP, try asking for help
in our chat: https://gitter.im/openwisp/general

On Fri, Aug 24, 2018 at 11:37 AM César Leitão <
cesarhernandezlei...@gmail.com> wrote:

> Yes always asking for SSH password and su password (SSH default)
> The command im launching is the one you wrote in the previous response
>
> On Fri, Aug 24, 2018, 10:18 AM Federico Capoano <
> federico.capo...@gmail.com> wrote:
>
>> Please paste the command you're using.
>> Is the command line asking for your SSH passwrod when you launch the
>> command?
>>
>> On Thu, Aug 23, 2018 at 11:31 PM César Leitão <
>> cesarhernandezlei...@gmail.com> wrote:
>>
>>> Hi Frederico, i tried what you said to copy the entire string of the
>>>> public key, but no success... Same error.
>>>>
>>> What dump you want to help me?
>>>
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Openwisp2 instalation (testing purpose) error

2018-08-24 Thread Federico Capoano
Please paste the command you're using.
Is the command line asking for your SSH passwrod when you launch the
command?

On Thu, Aug 23, 2018 at 11:31 PM César Leitão <
cesarhernandezlei...@gmail.com> wrote:

> Hi Frederico, i tried what you said to copy the entire string of the
>> public key, but no success... Same error.
>>
> What dump you want to help me?
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Openwisp2 instalation (testing purpose) error

2018-08-22 Thread Federico Capoano
Hi Cesar and welcome,

"Falha de autenticação" seems to mean "Authentication Failure", you simply
need to pass the right authentication credentials, I suggest you to install
your public SSH key in the authorized_keys file of the user you are trying
to log in, for example, is the user is "cesar", you should put your public
SSH key (which is a text string) in /home/cesar/.ssh/authorized_keys ; once
you do that you should be able to log in without entering any password, eg:

ansible-playbook -i hosts playbook.yml -b -k -K --become-method=su -u cesar
(where cesar is the name of the user).

What's the full ansible-playbook command you're using?

Federico

On Wed, Aug 22, 2018 at 11:55 PM César Leitão <
cesarhernandezlei...@gmail.com> wrote:

> Hi, i'm new to openwisp and i'm trying to deploy it for testing purposes.
> I'm following this tutorial (
> https://github.com/openwisp/ansible-openwisp2#install-openwisp2-for-testing-in-a-virtualbox-vm
> ).
> After some attempts i launched the command with -vvv to check the error,
> and got this:
> TASK [openwisp.openwisp2 : migrate]
> 
> task path:
> /home/cesar/.ansible/roles/openwisp.openwisp2/tasks/django.yml:81
> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
> '"'"'echo ~ && sleep 0'"'"''
> <192.168.1.101> (0, '/home/cesar\n', '')
> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
> '"'"'( umask 77 && mkdir -p "` echo
> /var/tmp/ansible-tmp-1534974865.57-49688458530569 `" && echo
> ansible-tmp-1534974865.57-49688458530569="` echo
> /var/tmp/ansible-tmp-1534974865.57-49688458530569 `" ) && sleep 0'"'"''
> <192.168.1.101> (0,
> 'ansible-tmp-1534974865.57-49688458530569=/var/tmp/ansible-tmp-1534974865.57-49688458530569\n',
> '')
> Using module file
> /usr/lib/python2.7/dist-packages/ansible/modules/web_infrastructure/django_manage.py
> <192.168.1.101> PUT
> /home/cesar/.ansible/tmp/ansible-local-30581NZwtd6/tmpePM9va TO
> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py
> <192.168.1.101> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o
> ControlMaster=auto -o ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c '[192.168.1.101]'
> <192.168.1.101> (0, 'sftp> put
> /home/cesar/.ansible/tmp/ansible-local-30581NZwtd6/tmpePM9va
> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py\n', '')
> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
> '"'"'setfacl -m u:www-data:r-x
> /var/tmp/ansible-tmp-1534974865.57-49688458530569/
> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py && sleep
> 0'"'"''
> <192.168.1.101> (0, '', '')
> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c -tt 192.168.1.101 '/bin/sh
> -c '"'"'su  www-data -c '"'"'"'"'"'"'"'"'/bin/sh -c
> '"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'echo
> BECOME-SUCCESS-baivilxzeziwopfmpxigephdwvejjfgi; /usr/bin/python
> /var/tmp/ansible-tmp-1534974865.57-49688458530569/django_manage.py'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"'"''"'"'"'"'"'"'"'"'
> && sleep 0'"'"''
> <192.168.1.101> (1, '\r\nsu: Falha de autentica\xc3\xa7\xc3\xa3o\r\n',
> 'Shared connection to 192.168.1.101 closed.\r\n')
> <192.168.1.101> ESTABLISH SSH CONNECTION FOR USER: None
> <192.168.1.101> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o
> ControlPersist=60s -o ConnectTimeout=10 -o
> ControlPath=/home/cesar/.ansible/cp/ffb009240c 192.168.1.101 '/bin/sh -c
> '"'"'rm -f -r /var/tmp/ansible-tmp-1534974865.57-49688458530569/ >
> /dev/null 2>&1 && sleep 0'"'"''
> <192.168.1.101> (0, '', '')
> fatal: [192.168.1.101]: FAILED! => {
> "changed": false,
> "module_stderr": "Shared connection to 192.168.1.101 closed.\r\n",
> "module_stdout": "\r\nsu: Falha de autenticação\r\n",
> "msg": "MODULE FAILURE",
> "rc": 1
> }
> to retry, use: --limit
> @/home/cesar/Desktop/openwisp2-ansible-playbook/playbook.retry
>
> PLAY RECAP
> *
> 192.168.1.101  : ok=41   changed=0unreachable=0failed=1
>
> Please help me! i'm literaly stucked here for so long i cant figure it out
> myself
> Sorry for my bad english :)
>
> --
> You received this message becau

[openwisp] Re: Wi-Fi Hotel Project

2018-08-20 Thread Federico Capoano
Hi Carlo and welcome,

for the user registration you can use django-freeradius 
, you can write some kind of 
automation that automatically creates/deletes users for your hotel using 
their room number, it's just an example, there are many ways to do this.
You can configure django-freeradius to use mysql or postgresql.

For the management of the access points you can use openwisp-controller.

For captive portal I suggest PfSense (in a centralized fashion on a 
separate server, you will need to funnel all your traffic to this) or 
Coova-chilli (you can build this into the OpenWRT firmware).

The specifics of how to do this are too long to explain and can vary a lot 
depending on the use case, if you look in the history of the mailing list 
you should find many similar questions which you can use to find useful 
information.

If you have more specific questions it will be easier to help you out.

Best luck with your project
Federico


On Tuesday, August 14, 2018 at 4:37:35 PM UTC+2, Carlo Cangiotti wrote:
>
> I'm asking your help to setting up a network infrastructure (hd, sw) for 
> my hotel with these requirements:
>
>- Opensource software (OpenWIsp, OpenWrt / LEDE, etc.)
>- Captive portal with user registration with room number or social 
>access with room number
>- Credential saving in mysql db placed on a detached web server 
>- management of 10/12 access points with the same SSID (network with 
>the hotel's name) so the guests that are registered are always connected 
>even if they are in different areas of the hotel or in the room.
>
> II looked on internet and I was thinking to use a router like Linksys WRT 
> AC1200 and a Ubiquiti Uap-Pro AC 1300 Mbit/s like slave access point or 
> anyway pretty nice access points to put in a hotel room.
>
> Is the first time that I tried in the programming of AC / Router I would 
> like to know how to do it and if you can give me a help for the 
> configuration or advice also for the routers and/or access point to use. 
>
> Thanks to everyone,
>
> Carlo
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Google maps integration

2018-08-14 Thread Federico Capoano
Thanks for sharing Carmine!

Federico


On Tuesday, August 7, 2018 at 3:41:42 PM UTC+2, Carmine Gregorio wrote:
>
>
> Hi guys,
>
> I created an openwisp controller fork and added google maps for 
> geolocation, if it interests anyone i leave the git hub repo 
> https://github.com/cargreg/openwisp-controller
>
>
>
> 
>
>
> 
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] docker build fails

2018-08-14 Thread Federico Capoano
Hi Chetan and welcome,

sorry for my delayed response. It may be a bug.
It was working when I tried but I'm no 100% sure because I'm not using that
docker file a lot.
If you think it's a bug, could you open an issue in the respective
repository?

As an alternative to test openwisp-controller you can follow the
instructions in:
https://github.com/openwisp/openwisp-controller#installing-for-development

Federico

On Fri, Aug 10, 2018 at 7:05 PM Chetan Kumar 
wrote:

> Hi,
>
> I was trying to build the openwisp docker, it fails with following error
> (pasting last stage)
>
> Step 5/10 : RUN pip3 install -U .
>  ---> Running in 1943a8ef202d
> Processing /usr/src/app
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/tmp/pip-req-build-ljuc33ce/setup.py", line 5, in 
> from openwisp_controller import get_version
> ModuleNotFoundError: No module named 'openwisp_controller'
>
> 
> Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-req-build-ljuc33ce/
> The command '/bin/sh -c pip3 install -U .' returned a non-zero code: 1
>
>
>
> Did someone else faced same problem ? Any pointer for next steps ?
>
> Thanks
> C
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: [patch, netjsonconfig]: importing backends from other modules

2018-05-21 Thread Federico Capoano
Sounds great. Could you add some documentation regarding this feature?
You could, for example, start a page called "extending.rst" and explain 
this concept there including an example.

It will be a great chance for me as well to add a few lines on how to 
create a new backend.

Federico


On Monday, May 21, 2018 at 5:29:42 PM UTC+3, Edoardo Putti wrote:
>
> The patch is from a package using netjsonconfig.
>
> Take AirOS as an example, I would create a project, netjsonconfig-airos, 
> import netjsonconfig for the base classes, write my backend + templates
> and then write the entry_point attribute in my setup.py to reference my 
> backend class.
>
> Then when using netjsonconfig if I want to use the netjsonconfig-airos 
> backend it's just a pip install away.
>
> I'll make an example backend soon to provide more reference to how this 
> works
>
> Il giorno lunedì 21 maggio 2018 12:15:08 UTC+2, Federico Capoano ha 
> scritto:
>>
>> Hi Edoardo,
>>
>> thanks for the patch.
>>
>> I'm not 100% sure I fully understood this patch in practice.
>> In the pull request you cite a `setup.py` example, but I don't understand 
>> if that would be the `setup.py` of a python module using netjsonconfig or 
>> that should be the setup.py of netjsonconfig itself.
>> Could you give a full example?
>>
>> If it's what I think it is, it will most likely need a bit of 
>> documentation to help users understand how this feature works and how it 
>> can be used.
>>
>> Federico
>>
>>
>>
>> On Monday, May 21, 2018 at 11:36:39 AM UTC+3, Edoardo Putti wrote:
>>>
>>> Hello everyone,
>>>
>>> it's been a long time since 2017 GSOC but I keep reading the digest from 
>>> the project.
>>>
>>> Recently I had some time to experiment with python packaging and this is 
>>> the result applied to netjsonconfig [0].
>>>
>>> This change would help integrating with custom backend that the 
>>> community has been experimenting on that did not get merged upstream [1], 
>>> [2], [3], [4] or simply
>>> make writing a backend simpler without having to touch the original 
>>> netjsonconfig code.
>>>
>>> I still don't know if this is the correct way to do this "find backends 
>>> dinamically" thing so if there are more experienced python packagers please 
>>> chime in.
>>>
>>> edoput
>>>
>>> [0]: https://github.com/openwisp/netjsonconfig/pull/106
>>> [1]: https://github.com/openwisp/netjsonconfig/pull/92
>>> [2]: https://github.com/openwisp/netjsonconfig/pull/91
>>> [3]: 
>>> https://groups.google.com/forum/#!searchin/openwisp/custom$20backend|sort:date/openwisp/BqHQQ2_TmxE/rXOLB93yBAAJ
>>> [4]: 
>>> https://groups.google.com/forum/#!searchin/openwisp/virtual$20machine|sort:date/openwisp/fOzhr1gQ-Zc/qnZX3zcWAwAJ
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: [patch, netjsonconfig]: importing backends from other modules

2018-05-21 Thread Federico Capoano
Hi Edoardo,

thanks for the patch.

I'm not 100% sure I fully understood this patch in practice.
In the pull request you cite a `setup.py` example, but I don't understand 
if that would be the `setup.py` of a python module using netjsonconfig or 
that should be the setup.py of netjsonconfig itself.
Could you give a full example?

If it's what I think it is, it will most likely need a bit of documentation 
to help users understand how this feature works and how it can be used.

Federico



On Monday, May 21, 2018 at 11:36:39 AM UTC+3, Edoardo Putti wrote:
>
> Hello everyone,
>
> it's been a long time since 2017 GSOC but I keep reading the digest from 
> the project.
>
> Recently I had some time to experiment with python packaging and this is 
> the result applied to netjsonconfig [0].
>
> This change would help integrating with custom backend that the community 
> has been experimenting on that did not get merged upstream [1], [2], [3], 
> [4] or simply
> make writing a backend simpler without having to touch the original 
> netjsonconfig code.
>
> I still don't know if this is the correct way to do this "find backends 
> dinamically" thing so if there are more experienced python packagers please 
> chime in.
>
> edoput
>
> [0]: https://github.com/openwisp/netjsonconfig/pull/106
> [1]: https://github.com/openwisp/netjsonconfig/pull/92
> [2]: https://github.com/openwisp/netjsonconfig/pull/91
> [3]: 
> https://groups.google.com/forum/#!searchin/openwisp/custom$20backend|sort:date/openwisp/BqHQQ2_TmxE/rXOLB93yBAAJ
> [4]: 
> https://groups.google.com/forum/#!searchin/openwisp/virtual$20machine|sort:date/openwisp/fOzhr1gQ-Zc/qnZX3zcWAwAJ
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: [radius] GSoC 2018: Progress report week 3

2018-05-19 Thread Federico Capoano
Hey Rohith,

is it possible to avoid specifying an expiration date?

Federico


On Friday, May 18, 2018 at 8:58:16 PM UTC+3, Rohith Asrk wrote:
>
> Hi all,
>
> This week was all invested into hands on coding and testing of the 
> batch-add-users features.
>
> All the related work and discussion could be seen at PR #109 [1] 
> 
>
> Some details worth pointing out would be:
>
>1. The cleartext password and the hashed password handling is 
>supported.
>2. Users are deactivated after an expiry date.
>3. Expired accounts older than 18 months (customisable) are deleted.
>4. CSV upload feature from the management command works.
>
> I'm just trying to put more and more acid tests/ regression tests that are 
> missing and make the coverage 100%. The coverage builds are kind of weird 
> as of now. Check out here [2]
> 
>
> And the related docs shall be added in a detailed manner too.
>
>
> Links:
>
> [1]: https://github.com/openwisp/django-freeradius/pull/109
>
> [2]: https://coveralls.io/builds/17058462
>
>
> Have a great weekend,
> Rohith ASRK
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: django-freeradius: importing users with existing passwords

2018-05-15 Thread Federico Capoano
Hi Arthur, we are discussing about the feature described in these issues:
https://github.com/openwisp/django-freeradius/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+csv

What you write is true but django supports many different hashing
algorithms and allows to extend the supported algorithms by writing
"Password Hasher Classes", here it is explained in detail: How Django
Stores Passwords
<https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#how-django-stores-passwords>
.
That's beauiful and that's one of the reasons why I love Django and that's
why OpenWISP uses Django, it's an excellent framework, top quality, stable,
very extensible and very well documented.
By reading its documentation we can implement it in the best, more secure
and more reliable way.

Fed.

On Tue, May 15, 2018 at 11:56 PM Артур Скок  wrote:

> If you don't mind i can add my two cents. I don't know source of
> discussion. But may be can help.
> I cannot understand problem. Do you need hash recognition from string
> valule? Hashes always have predefined length. Accordingly predefined $
> position from end.
>
> 2018-05-15 19:38 GMT+05:00 Federico Capoano :
>
>> Right that's better because the clear text password may contain dollar
>> signs and the recognition would fail.
>> If we check for the presence of "cleartext$" we can be sure that's a
>> cleartext password, strip that part and take only the password from the
>> string.
>>
>> Thanks for bringing this up, I updated the github issue:
>> https://github.com/openwisp/django-freeradius/issues/115
>>
>> F.
>>
>
>> On Tue, May 15, 2018 at 5:08 PM Marco Cappellacci <
>> marco.cappella...@gmail.com> wrote:
>>
>>> I thought about it and the cleartext password should be written with
>>> dollar sign too, like cleartext$
>>>
>>>
>>> Il giorno mar 15 mag 2018 alle ore 14:07 Rohith Asrk <
>>> rohith.a...@gmail.com> ha scritto:
>>>
>>>> Looks good Federico. Working on it.
>>>>
>>>> On Tue, May 15, 2018 at 5:30 PM, Marco Cappellacci <
>>>> marco.cappella...@gmail.com> wrote:
>>>>
>>>>> I totally agree with your solution
>>>>>
>>>>> Thank you
>>>>>
>>>>> Marco
>>>>>
>>>>> Il giorno mar 15 mag 2018 alle ore 13:48 Federico Capoano <
>>>>> federico.capo...@gmail.com> ha scritto:
>>>>>
>>>>>> This is the hashers django currently supports:
>>>>>> https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#included-hashers
>>>>>>
>>>>>> The case Marco has I think is unsalted md5.
>>>>>>
>>>>>> We need to figure out what's the best way to do this.
>>>>>>
>>>>>> Django stores the passwords in a way that the hashing algorithm is
>>>>>> automatically understood, for example:
>>>>>>
>>>>>> >>> u = User.objects.last()
>>>>>> >>> u.password
>>>>>>
>>>>>> 'pbkdf2_sha256$10$mCxeZktfubPL$DKcpEYXK8dwW7qfGhrJOz0dxxsUryHcWyGi+Pj9u404='
>>>>>>
>>>>>> Which indicates the password is hashed using the
>>>>>> algorithm pbkdf2_sha256, which according to the django docs, is
>>>>>> "django.contrib.auth.hashers.PBKDF2PasswordHasher"
>>>>>>
>>>>>> This other value:
>>>>>>
>>>>>> sha1$bd921$0ede5c7ab710dbd0af60ca21nfa871a678184849
>>>>>>
>>>>>> Is salted sha1 with no iterations, notice this string has only 3
>>>>>> blocks (the previous one had 4: algorithm, iterations, salt, and hash).
>>>>>>
>>>>>> Unsalted md5 therefore should be something like (please verify by
>>>>>> doing your own tests):
>>>>>>
>>>>>> unsalted_md5$vRTDfhKNvXqofawrtJXNPA==
>>>>>>
>>>>>> If I sum all this information up, the first and simplest solution
>>>>>> that comes into my mind is the following:
>>>>>>
>>>>>>- the column dedicated to the password is optional, if not
>>>>>>supplied passwords will be generated automatically
>>>>>>- if the password column is present we have the following cases:
>>>>>>   - passwords should be written as djan

[openwisp] Re: django-freeradius: importing users with existing passwords

2018-05-15 Thread Federico Capoano
Right that's better because the clear text password may contain dollar
signs and the recognition would fail.
If we check for the presence of "cleartext$" we can be sure that's a
cleartext password, strip that part and take only the password from the
string.

Thanks for bringing this up, I updated the github issue:
https://github.com/openwisp/django-freeradius/issues/115

F.

On Tue, May 15, 2018 at 5:08 PM Marco Cappellacci <
marco.cappella...@gmail.com> wrote:

> I thought about it and the cleartext password should be written with
> dollar sign too, like cleartext$
>
>
> Il giorno mar 15 mag 2018 alle ore 14:07 Rohith Asrk <
> rohith.a...@gmail.com> ha scritto:
>
>> Looks good Federico. Working on it.
>>
>> On Tue, May 15, 2018 at 5:30 PM, Marco Cappellacci <
>> marco.cappella...@gmail.com> wrote:
>>
>>> I totally agree with your solution
>>>
>>> Thank you
>>>
>>> Marco
>>>
>>> Il giorno mar 15 mag 2018 alle ore 13:48 Federico Capoano <
>>> federico.capo...@gmail.com> ha scritto:
>>>
>>>> This is the hashers django currently supports:
>>>> https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#included-hashers
>>>>
>>>> The case Marco has I think is unsalted md5.
>>>>
>>>> We need to figure out what's the best way to do this.
>>>>
>>>> Django stores the passwords in a way that the hashing algorithm is
>>>> automatically understood, for example:
>>>>
>>>> >>> u = User.objects.last()
>>>> >>> u.password
>>>>
>>>> 'pbkdf2_sha256$10$mCxeZktfubPL$DKcpEYXK8dwW7qfGhrJOz0dxxsUryHcWyGi+Pj9u404='
>>>>
>>>> Which indicates the password is hashed using the
>>>> algorithm pbkdf2_sha256, which according to the django docs, is
>>>> "django.contrib.auth.hashers.PBKDF2PasswordHasher"
>>>>
>>>> This other value:
>>>>
>>>> sha1$bd921$0ede5c7ab710dbd0af60ca21nfa871a678184849
>>>>
>>>> Is salted sha1 with no iterations, notice this string has only 3 blocks
>>>> (the previous one had 4: algorithm, iterations, salt, and hash).
>>>>
>>>> Unsalted md5 therefore should be something like (please verify by doing
>>>> your own tests):
>>>>
>>>> unsalted_md5$vRTDfhKNvXqofawrtJXNPA==
>>>>
>>>> If I sum all this information up, the first and simplest solution that
>>>> comes into my mind is the following:
>>>>
>>>>- the column dedicated to the password is optional, if not supplied
>>>>passwords will be generated automatically
>>>>- if the password column is present we have the following cases:
>>>>   - passwords should be written as django expects them (eg: like
>>>>   one of the previous password hashes I provided above), that means we 
>>>> should
>>>>   find at least one dollar sign in them, this means the users will 
>>>> have work
>>>>   a bit more to generate a correct CSV, and we will do less work, 
>>>> which is ok
>>>>   for now because we don't want to spend too much time on this, but it 
>>>> also
>>>>   mean the password must be saved as is, without further hashing
>>>>   - if the password does not contain any dollar sign, the system
>>>>   will assume it's a cleartext password and the password will be 
>>>> hashed with
>>>>   the default django password hasher
>>>>
>>>> Either of the cases in which the password is present should not be
>>>> complicated to implement, it's just a matter of calling the right user
>>>> model methods.
>>>>
>>>> Create a test case for each of the previous points, but for the hashed
>>>> password case it would be better to create 3 tests, one for pbkdf2_sha256,
>>>> one for salted sha1 and one for unsalted md5.
>>>>
>>>> Before working on this, please read this page entirely:
>>>> https://docs.djangoproject.com/en/2.0/topics/auth/passwords/
>>>>
>>>> I created a github issue:
>>>> https://github.com/openwisp/django-freeradius/issues/115
>>>>
>>>> Fed
>>>>
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Openwisp add new custom Backend: for template

2018-05-15 Thread Federico Capoano
No that's not possible out of the box right now.

This PR here would allow to implement such a thing:
https://github.com/openwisp/django-netjsonconfig/pull/74
The value of 'data-options' could become a django setting which could also
be modified.

I don't have time to implement such a thing though, so if you want to help
out, you could start by:

- reading http://openwisp.io/docs/developer/contributing.html
- review/test the patch sent in the PR linked above to ensure everything
works normally after the patch is merged - then I can merge it and you can
start adding the setting if you want

Federico

On Tue, May 15, 2018 at 3:45 PM Deepak rocks 
wrote:

>
> Thanks Fed for such quick reply,
> It really helped alot and now I am able to add New Backend and it worked
> like charms.
>
> And I am using OpenWISP controller for this. One more observation is If I
> want to remove the "Object Properties" from the template UI, what process I
> have to follow?
> As per my understanding, the html UI code is getting generated from python
> code base.
>
> Is there a way which will allow me to modify the default  Add template UI??
>
>
> On Tuesday, May 15, 2018 at 3:46:05 PM UTC+5:30, Federico Capoano wrote:
>
>> See here:
>> https://github.com/openwisp/django-netjsonconfig#netjsonconfig_backends
>>
>> You could have:
>>
>> NETJSONCONFIG_BACKENDS = (
>>   ('pythonpath.to.your.Backend', 'NewBackend'),
>>   ('netjsonconfig.OpenWrt', 'OpenWRT'),
>>   ('netjsonconfig.OpenWisp', 'OpenWISP'),
>> )
>>
>> Or you can also remove the entries you don't need or don't want to show.
>>
>> This must go in the django settings file, if you are using
>> ansible-openwisp2 you should configure it in the vars section like the
>> following:
>>
>> vars:
>>   openwisp2_extra_django_settings_instructions:
>> - |
>> NETJSONCONFIG_BACKENDS = (
>>   ('pythonpath.to.your.Backend', 'NewBackend'),
>>   ('netjsonconfig.OpenWrt', 'OpenWRT'),
>>   ('netjsonconfig.OpenWisp', 'OpenWISP'),
>> )
>>
>> I hope this helps.
>> Fed
>>
>> On Tue, May 15, 2018 at 12:40 PM Deepak rocks 
>> wrote:
>>
> Hi,
>>>
>>> I want to add new backend for templates. By default OpenWRT/LEDE and
>>> OenWISP Firmware1.x is coming as drop down.
>>> I have followed the below step to add NewDevice Backend.
>>>
>>> -  cloned the netjsonconfig/backend/openwrt module and created a new 
>>> backend and changed
>>> name from "OpenWrt" to "NewDevice".
>>>
>>>
>>> 1. What all changes required in  django-netjsonconfig and 
>>> openwisp-controller ?
>>>
>>>   If anyone have any idea then it would be very helpful.
>>>
>>> --
>>> 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.
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] django-freeradius: importing users with existing passwords

2018-05-15 Thread Federico Capoano
This is the hashers django currently supports:
https://docs.djangoproject.com/en/2.0/topics/auth/passwords/#included-hashers

The case Marco has I think is unsalted md5.

We need to figure out what's the best way to do this.

Django stores the passwords in a way that the hashing algorithm is
automatically understood, for example:

>>> u = User.objects.last()
>>> u.password
'pbkdf2_sha256$10$mCxeZktfubPL$DKcpEYXK8dwW7qfGhrJOz0dxxsUryHcWyGi+Pj9u404='

Which indicates the password is hashed using the algorithm pbkdf2_sha256,
which according to the django docs, is
"django.contrib.auth.hashers.PBKDF2PasswordHasher"

This other value:

sha1$bd921$0ede5c7ab710dbd0af60ca21nfa871a678184849

Is salted sha1 with no iterations, notice this string has only 3 blocks
(the previous one had 4: algorithm, iterations, salt, and hash).

Unsalted md5 therefore should be something like (please verify by doing
your own tests):

unsalted_md5$vRTDfhKNvXqofawrtJXNPA==

If I sum all this information up, the first and simplest solution that
comes into my mind is the following:

   - the column dedicated to the password is optional, if not supplied
   passwords will be generated automatically
   - if the password column is present we have the following cases:
  - passwords should be written as django expects them (eg: like one of
  the previous password hashes I provided above), that means we should find
  at least one dollar sign in them, this means the users will have
work a bit
  more to generate a correct CSV, and we will do less work, which is ok for
  now because we don't want to spend too much time on this, but it
also mean
  the password must be saved as is, without further hashing
  - if the password does not contain any dollar sign, the system will
  assume it's a cleartext password and the password will be hashed with the
  default django password hasher

Either of the cases in which the password is present should not be
complicated to implement, it's just a matter of calling the right user
model methods.

Create a test case for each of the previous points, but for the hashed
password case it would be better to create 3 tests, one for pbkdf2_sha256,
one for salted sha1 and one for unsalted md5.

Before working on this, please read this page entirely:
https://docs.djangoproject.com/en/2.0/topics/auth/passwords/

I created a github issue:
https://github.com/openwisp/django-freeradius/issues/115

Fed

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Openwisp add new custom Backend: for template

2018-05-15 Thread Federico Capoano
See here:
https://github.com/openwisp/django-netjsonconfig#netjsonconfig_backends

You could have:

NETJSONCONFIG_BACKENDS = (
  ('pythonpath.to.your.Backend', 'NewBackend'),
  ('netjsonconfig.OpenWrt', 'OpenWRT'),
  ('netjsonconfig.OpenWisp', 'OpenWISP'),
)

Or you can also remove the entries you don't need or don't want to show.

This must go in the django settings file, if you are using
ansible-openwisp2 you should configure it in the vars section like the
following:

vars:
  openwisp2_extra_django_settings_instructions:
- |
NETJSONCONFIG_BACKENDS = (
  ('pythonpath.to.your.Backend', 'NewBackend'),
  ('netjsonconfig.OpenWrt', 'OpenWRT'),
  ('netjsonconfig.OpenWisp', 'OpenWISP'),
)

I hope this helps.
Fed

On Tue, May 15, 2018 at 12:40 PM Deepak rocks 
wrote:

> Hi,
>
> I want to add new backend for templates. By default OpenWRT/LEDE and
> OenWISP Firmware1.x is coming as drop down.
> I have followed the below step to add NewDevice Backend.
>
> -  cloned the netjsonconfig/backend/openwrt module and created a new backend 
> and changed
> name from "OpenWrt" to "NewDevice".
>
>
> 1. What all changes required in  django-netjsonconfig and openwisp-controller 
> ?
>
>   If anyone have any idea then it would be very helpful.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] GSoC 2018 Progress Report: Week 1

2018-05-05 Thread Federico Capoano
Rohtih, remember to go over the PRs you opened a while ago and finish
those, you can do this by going to: https://github.com/pulls

Federico

On Sat, May 5, 2018 at 10:09 AM Rohith Asrk  wrote:

> Hi all,
>
> Thanks to everyone in the community for accepting my application for GSoC
> 2018. The community bonding has already begun a while ago. I had a video
> chat with Federico and Marco last night.
>
> I unfortunately couldn't get my hands on code yet as I'm busy with my
> university final examinations. I'll be getting free from everything this
> weekend and hopefully kick off soon.
>
> So my plans for the next week are:
>
> [1] Setup django-freeradius and work on the existing issues/ PRs open.
>
> [2] Explore FreeRADIUS more and test on a local server.
>
> I'll be keeping the mailing list updated with the progress.
>
> Have a great weekend.
>
> Regards,
> Rohith ASRK
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] django-ipam : Database structure clarification

2018-05-05 Thread Federico Capoano
Hey Anurag,

On Sat, May 5, 2018 at 9:31 AM Anurag Sharma  wrote:

> Before I begin creating the models I just wanted to clarify the
> relationship between Subnets and IP addresses. What I guess, Is that
> Subnets and IP address are related with a one to many relationship
> structure, and inside a subnet model record, the user would be able to
> create/add ip addresses to it. right ?
>

Yes.

The Ip model should have a ForeignKey field to the Subnet model.

To start easily, In the subnet admin we can have ip inlines
(admin.StackedInline).

Also if anyone has any good resource to read more about subnets that would
> be really helpful for this project.
>

For networking principles in general, I highly suggest you this great book,
by a University Professor in Paris, which is open source and freely
available in several formats (HTML, ePub, PDF, Mobi): Computer Networking :
Principles, Protocols and Practice
.

F.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: GSOC 2018 | Django-IPAM project work update 1.0

2018-05-04 Thread Federico Capoano
Hey Anurag, see below,

On Friday, May 4, 2018 at 7:15:41 AM UTC+2, Anurag Sharma wrote:
>
> Hi all,
>
> This is the first of many more to come work update post. As discussed with 
> my mentors.
>
> Update - 
> (Since the actual coding work has not yet begun, this more of an informal 
> personal update related to the project)
>
>- The repository has been created (by Federico) and I have made a 
>clone of that. We will be following the Pull Request method of the getting 
>the work done.
>- Also I was going through the django-freeradius directory structure, 
>Are we going to follow the same method for django-ipam ? If yes, I will 
>make the "django-ipam" first and then create a test app for the module. 
>
> Yes we are following the same structure. 

>
>- Played around with the phpipam to get a good understanding of IPAM 
>softwares used right now.
>
> Informal updates - 
>
>- I am back at my hometown, and will begin the coding work in a day or 
>two.
>- Started building my website - anurag-sharma.me (Need to fix some 
>stuff, as pointed out by Federico)
>
> That's all for now, will send another update post on 11th of May, 2018. I 
> hope we would have started working by then. 
>

Yes we need to get started now, please start working on it and let us know 
if you need anything from your mentors that is stopping you from starting.
 
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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating

2018-05-02 Thread Federico Capoano
Interesting!
django-reversion is being used in a few places already, while we are
considering django-import-export for a couple new modules.

Thank for the update
Fed

On Wed, May 2, 2018 at 9:31 AM  wrote:

> Federico: I have now added support in
> https://github.com/innovationgarage/cloudberry-djangoproject for
>
> * Import / export  using http://django-import-export.readthedocs.io (only
> json-format supported though)
> * Access control using a basic object ownership by django auth group scheme
> * Versioning using https://django-reversion.readthedocs.io
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Helping contributors to get started: a general project board with all important issues

2018-05-02 Thread Federico Capoano
Regarding the organization wide lablels, a google search brought up 
this: https://github.com/repo-utils/org-labels

A command line tool which uses the github API to manage labels for multiple 
repos. I will try that in the near future!

Fed


On Sunday, April 29, 2018 at 7:10:04 PM UTC+2, Federico Capoano wrote:
>
> I checked and we are using "good-first-issue" in some repos.
>
> It will take time to clean that up on all repos.. I hope github introduces 
> a way to set up organization wide labels, right now is just too time 
> consuming.
>
> I've created more to-do columns, I hope now it's easier to read, at least 
> it looks like to me. 
>
> I've also linked the new board from the documentation and the website.
>
> I hope now new contributors will have an easier time in getting started!
>
> Fed
>
>
> On Sunday, April 29, 2018 at 3:53:25 PM UTC+2, Federico Capoano wrote:
>>
>> On Saturday, April 28, 2018 at 8:09:35 PM UTC+2, Aditya wrote:
>>>
>>> This seems really great! I think we should also set up 3 different tags, 
>>> namely Beginner, Intermediate, and Advanced so that people with a 
>>> particular level of skillset can be encouraged to contribute.
>>>
>>
>> Setting up tags for all the repositories it's a good idea, there are a 
>> few obstacles to overcome though:
>>
>> Differentiating for "beginner" tasks can be done easily, but I would 
>> argue that "intermediate" and "advanced" really depends on the skill set 
>> and experience with a particular technology.
>> Moreover, setting up all these tags on each repo is time consuming and 
>> must be done for each new repo as well, something that cannot be automated 
>> easily and will most likely be forgotten.
>> It would be a different matter if github allowed to set up organization 
>> wide labels.
>>
>> Since we can use multiple columns, I'm thinking of adding multiple "Todo" 
>> columns, for different areas that we currently need most:
>>
>>- Todo (ansible)
>>- Todo (python)
>>- Todo (django)
>>- Todo (UX)
>>- Todo (documentation)
>>
>> I'd then begin to introduce the tag "easy-pickings", but really we don't 
>> have many of these because usually if something is easy I fix it myself.
>>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Helping contributors to get started: a general project board with all important issues

2018-04-29 Thread Federico Capoano
I checked and we are using "good-first-issue" in some repos.

It will take time to clean that up on all repos.. I hope github introduces 
a way to set up organization wide labels, right now is just too time 
consuming.

I've created more to-do columns, I hope now it's easier to read, at least 
it looks like to me. 

I've also linked the new board from the documentation and the website.

I hope now new contributors will have an easier time in getting started!

Fed


On Sunday, April 29, 2018 at 3:53:25 PM UTC+2, Federico Capoano wrote:
>
> On Saturday, April 28, 2018 at 8:09:35 PM UTC+2, Aditya wrote:
>>
>> This seems really great! I think we should also set up 3 different tags, 
>> namely Beginner, Intermediate, and Advanced so that people with a 
>> particular level of skillset can be encouraged to contribute.
>>
>
> Setting up tags for all the repositories it's a good idea, there are a few 
> obstacles to overcome though:
>
> Differentiating for "beginner" tasks can be done easily, but I would argue 
> that "intermediate" and "advanced" really depends on the skill set and 
> experience with a particular technology.
> Moreover, setting up all these tags on each repo is time consuming and 
> must be done for each new repo as well, something that cannot be automated 
> easily and will most likely be forgotten.
> It would be a different matter if github allowed to set up organization 
> wide labels.
>
> Since we can use multiple columns, I'm thinking of adding multiple "Todo" 
> columns, for different areas that we currently need most:
>
>- Todo (ansible)
>- Todo (python)
>- Todo (django)
>- Todo (UX)
>- Todo (documentation)
>
> I'd then begin to introduce the tag "easy-pickings", but really we don't 
> have many of these because usually if something is easy I fix it myself.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Helping contributors to get started: a general project board with all important issues

2018-04-29 Thread Federico Capoano
On Saturday, April 28, 2018 at 8:09:35 PM UTC+2, Aditya wrote:
>
> This seems really great! I think we should also set up 3 different tags, 
> namely Beginner, Intermediate, and Advanced so that people with a 
> particular level of skillset can be encouraged to contribute.
>

Setting up tags for all the repositories it's a good idea, there are a few 
obstacles to overcome though:

Differentiating for "beginner" tasks can be done easily, but I would argue 
that "intermediate" and "advanced" really depends on the skill set and 
experience with a particular technology.
Moreover, setting up all these tags on each repo is time consuming and must 
be done for each new repo as well, something that cannot be automated 
easily and will most likely be forgotten.
It would be a different matter if github allowed to set up organization 
wide labels.

Since we can use multiple columns, I'm thinking of adding multiple "Todo" 
columns, for different areas that we currently need most:

   - Todo (ansible)
   - Todo (python)
   - Todo (django)
   - Todo (UX)
   - Todo (documentation)

I'd then begin to introduce the tag "easy-pickings", but really we don't 
have many of these because usually if something is easy I fix it myself.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: openwisp2 controller works in redundancy

2018-04-28 Thread Federico Capoano
mmm the image is not very readable, maybe an SVG would work better?

It'd be cool to have the possibility to specify a list of URLs, as well as
an additional option to randomize the order in which the URLs are tried if
the administrator deems this useful. I was not thinking about a proxy
though, better to keep it simple.

Fed

On Sat, Apr 28, 2018 at 2:30 PM Артур Скок  wrote:

> PNG version in attach.
>
> Redundancy: you meant to realize same solution for openwisp-config like
> OpenVPN random server address? With proxy and etc?
>
> 2018-04-28 16:57 GMT+05:00 Federico Capoano :
>
>> Would be great!
>>
>> Could you export it as PNG please?
>>
>> For the record, here's what I was referring to when mentioning openvpn,
>> see "--remote" and "--remote-random" flags:
>> https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Helping contributors to get started: a general project board with all important issues

2018-04-28 Thread Federico Capoano
Hi everyone,

with Adytia we have been playing with the idea of a general kanban board 
for a while now, we tried a few things including Taiga.

Today Marco Giuntini has shown to me that github now allows general kanban 
boards which are not specific to single repositories, which looks very 
interesting and well integrated.

Perhaps we have found what we are looking for, check it out! 
https://github.com/orgs/openwisp/projects/3

if you like it, we could start refining it, add more issues, and link it 
from the docs!

This would help newcomers to understand what are the current priorities 
being worked on and hopefully can help to keep new contributors more 
engaged!

We definitely need more helping hands as well to coordinate, review and 
perform tests, so don't be afraid to step up to help!

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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: openwisp2 controller works in redundancy

2018-04-28 Thread Federico Capoano
Would be great! 

Could you export it as PNG please?

For the record, here's what I was referring to when mentioning openvpn, see 
"--remote" and "--remote-random" 
flags: https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: openwisp2 controller works in redundancy

2018-04-28 Thread Federico Capoano
Agreed with what Arthur wrote.

Alternatively, we do have an issue to allow openwisp-config to use 
different URLs (openvpn allows this as well) but nobody is currently 
working on it: https://github.com/openwisp/openwisp-config/issues/15

Fed

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: openwisp2 controller works in redundancy

2018-04-26 Thread Federico Capoano
Hi Mateus,

the first 2 ways that come to my mind are the following:

   1. different application servers behind an HTTP load balancer, serving 
   requests from the same hostname
   2. using different openwisp2 instances which are sharing database and 
   cache, having 2 hostnames, but the OpenWRT agent (openwisp-config) doesn't 
   support multiple URLs, so you'd have to balance things manually

In either case, I'm not sure this setup is not doable with the current 
ansible-openwisp2 role.

Federico


On Wednesday, April 25, 2018 at 7:57:38 PM UTC-3, mateus...@gmail.com wrote:
>
> Hello,
>
> is it possible to configure two virtual machines with openwisp2 controller 
> and make them work in redundancy to manage access points with OpenWRT?
>
> Thank you.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Congratulations to accepted GSoC 2018 students

2018-04-23 Thread Federico Capoano
I'd like to congratulate our accepted GSoC 2018 students:

   - Rohith Arsk
   - Anurag Sharma

Your proposals were really good and detailed. You put effort in
contributing to the community for some time and we have considered this as
a big plus.
We are looking forward to do good work with you.

The projects you will be working are very important for us, thtat's why
we've decided to focus on working only on 2 projects this year.
Please start working on the community bonding activities as soon as
possible.

Your mentors will get in touch soon.

*A message to all the students who haven't been accepted:*

Most of the proposals lacked details. A few ones had a good level of
details but missed the important points of the project and the students
didn't really contribute to the community with code patches that
demonstrated their ability to complete the project they were applying for
successfully.

If you want to apply again with us next year, I highly suggest you to keep
studying, learning, contributing however you can in your free time, use
openwisp and django as often as you can. Next year, please write a good
proposal - including details on how you intend to implement things and
solve problems - and don't forget that contributing actively to the
community is paramount to show you have the abilities required to do the
work.
We simply won't do blind acceptance of students we haven't seen in action
anymore.

Best regards
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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Help accessing openwisp

2018-04-20 Thread Federico Capoano
Could you share the contents of hosts?

Does it contain 10.85.18.14 or not?

For any question that is not related to this problem of ALLOWED_HOSTS,
please open a new thread and use a subject which describes the problem you
are experiencing, always check the logs first, that's the best thing you
can do to help us reply more easily and hence faster.

Federico

On Fri, Apr 20, 2018 at 10:05 AM Rafael Silva Daniel <
rafaelsilvadan...@gmail.com> wrote:

> sure! i used this command
>
> ansible-playbook -i hosts playbook.yml -u root -k --become -K, is it
> right??
>
> i confess that i only reproduced what i read in the howto, i might getting
> this errors because i dont know exactly what im doing, but i am testing,
> studing and researching about it, before i formulate another question, you
> know? but the system now is acessible, im trying to use it to manage the
> access points
>
> can i ask a more pratical question in this same thread?
>
> 2018-04-19 17:27 GMT-03:00 Federico Capoano :
>
>> Sorry, could you show me also how you did call the ansible-playbook
>> command?
>>
>> I'm trying to understand if you used the --connection local way or not.
>>
>> Federico
>>
>> On Thu, Apr 19, 2018 at 5:11 PM Rafael Silva Daniel <
>> rafaelsilvadan...@gmail.com> wrote:
>>
>>> Sorry for the late reply! i was away from the office today,
>>>
>>> But yeah, i edited it in the settings.py, it is better to edit it in the
>>> playbook.yml right? you asked me to show the contets, they are:
>>>
>>> /root/playbook.yml
>>>
>>> - hosts: openwisp2
>>>   become: "{{ become | default('yes') }}"
>>>   roles:
>>> - openwisp.openwisp2
>>>   vars:
>>> openwisp2_default_from_email: "openwisp2@OpenWISP-Wireless-Controller
>>> "
>>>
>>> in this instructions, the only allowed hosts would be the one called
>>> openwisp2, right? i understanded it right??
>>>
>>>
>>> 2018-04-18 19:06 GMT-03:00 Federico Capoano 
>>> :
>>>
>>>> That's great news to hear Rafael!
>>>>
>>>> Have you edited the settings.py manually? If you did, that's not the
>>>> best long term solution because if you run the ansible playbook again to
>>>> upgrade openwisp you will lose your manual changes.
>>>> If that's the case post please let me know and we'll try to help you
>>>> setting up the playbook in the best way to avoid future problems.
>>>>
>>>> Fed
>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Help accessing openwisp

2018-04-19 Thread Federico Capoano
Sorry, could you show me also how you did call the ansible-playbook command?

I'm trying to understand if you used the --connection local way or not.

Federico

On Thu, Apr 19, 2018 at 5:11 PM Rafael Silva Daniel <
rafaelsilvadan...@gmail.com> wrote:

> Sorry for the late reply! i was away from the office today,
>
> But yeah, i edited it in the settings.py, it is better to edit it in the
> playbook.yml right? you asked me to show the contets, they are:
>
> /root/playbook.yml
>
> - hosts: openwisp2
>   become: "{{ become | default('yes') }}"
>   roles:
> - openwisp.openwisp2
>   vars:
> openwisp2_default_from_email: "openwisp2@OpenWISP-Wireless-Controller"
>
> in this instructions, the only allowed hosts would be the one called
> openwisp2, right? i understanded it right??
>
>
> 2018-04-18 19:06 GMT-03:00 Federico Capoano :
>
>> That's great news to hear Rafael!
>>
>> Have you edited the settings.py manually? If you did, that's not the best
>> long term solution because if you run the ansible playbook again to upgrade
>> openwisp you will lose your manual changes.
>> If that's the case post please let me know and we'll try to help you
>> setting up the playbook in the best way to avoid future problems.
>>
>> Fed
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Help accessing openwisp

2018-04-18 Thread Federico Capoano
That's great news to hear Rafael!

Have you edited the settings.py manually? If you did, that's not the best 
long term solution because if you run the ansible playbook again to upgrade 
openwisp you will lose your manual changes.
If that's the case post please let me know and we'll try to help you 
setting up the playbook in the best way to avoid future problems.

Fed

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Failed to connect to controller while getting checksum: curl exit code 77

2018-04-18 Thread Federico Capoano
Glad to know we have a security expert :-)

I just wanted to point that out for the record, so that we avoid that any 
people reading this post in the future will think disabling SSL 
verification is a valid solution also for production systems, unfortunately 
I've seen people doing that a lot..

Federico


On Wednesday, April 18, 2018 at 4:15:51 PM UTC-3, BlancLoup wrote:
>
> In case of OpenWRT there is enough to put CA/server cert at 
> "/etc/ssl/certs". It'll work on the fly.
>
> I think that Nam uses test environment. Imho, if you try any solution then 
> you don't need troubles with 3rd-party soft.
> I know about security issues... cause it is my bread and butter =)
>
> среда, 18 апреля 2018 г., 20:12:46 UTC+5 пользователь Federico Capoano 
> написал:
>>
>> In that case the best solution would be to put the self created CA in the 
>> system's trusted CA so the SSL verification would pass.
>> I haven't tried this yet but when I will do I'll report how to do this.
>>
>> Disabling SSL verification in a production environment is highly 
>> discouraged in all cases. Routers could be subject to man in the middle 
>> attacks, an attacker could pretend to be OpenWISP and inject an arbitrary 
>> configuration, which would then allow him to root SSH into the routers.
>> So unless you are using OpenWISP in your home or in a small office in 
>> which you trust everyone, SSL should never be disabled in production, 
>> otherwise you incur in the risk of malicious people being able to do 
>> criminal activities from your own routers which in turn send packets to the 
>> public internet from your own IP addresses, in that case in most countries 
>> the police would come to your door and ask questions. You won't go to jail 
>> but if you run a business your reputation will be compromised.
>>
>> Saving time to properly configure SSL doesn't sound like a good 
>> investment considered the risk involved, IMHO.
>>
>> Think about it and let it sink.
>> Federico
>>
>>
>> Il mer 18 apr 2018, 11:24 Артур Скок  ha scritto:
>>
>>> Disabling the SSL verification may work, but it's not a good practice 
>>> for production environments because it's insecure so it should be used only 
>>> as a temporary solution. (c)
>>> May by they use self-signed cert in local network. In this case there is 
>>> not big risk.
>>>
>>> 2018-04-18 19:01 GMT+05:00 Federico Capoano :
>>>
>>>> From https://curl.haxx.se/libcurl/c/libcurl-errors.html
>>>>
>>>> CURLE_SSL_CACERT_BADFILE (77)
>>>>
>>>> Problem with reading the SSL CA cert (path? access rights?)
>>>>
>>>> Disabling the SSL verification may work, but it's not a good practice 
>>>> for production environments because it's insecure so it should be used 
>>>> only 
>>>> as a temporary solution.
>>>>
>>>> What SSL library are you using? openssl, mbedtls or cyassl?
>>>>
>>>> Federico
>>>>
>>>> On Wed, Apr 18, 2018 at 7:53 AM Артур Скок  wrote:
>>>>
>>>>> Hi.
>>>>> Try to use "option verify_ssl '0'"
>>>>>
>>>>> 2018-04-18 15:41 GMT+05:00 Nam Lê :
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I can't connect between openwisp agent and controller.
>>>>>>
>>>>>> Log agent show code 77 .
>>>>>> Wed Apr 18 10:35:49 2018 daemon.err openwisp: Failed to connect to 
>>>>>> controller while getting checksum: curl exit code 77
>>>>>>
>>>>>> I installed openwisp-config-no-sll on agent and this is  
>>>>>> /etc/config/openwisp
>>>>>>
>>>>>> config controller 'http'
>>>>>> option url 'https://10.0.1.253'
>>>>>> #option interval '120'
>>>>>> #option verify_ssl '1'
>>>>>> #option shared_secret ''
>>>>>> #option consistent_key '1'
>>>>>> #option mac_interface 'eth0'
>>>>>> #option merge_config '1'
>>>>>> #option test_config '1'
>>>>>> #option test_script '/usr/sbin/mytest'
>>>>>> option uuid '01619bd52e3e4f468ab7xx'

Re: [openwisp] Travis-ci build on ansible-openwisp2

2018-04-18 Thread Federico Capoano
Thanks a lot for this awesome and much needed contribution Marco!

Fed


Il mer 18 apr 2018, 16:24 Marco Giuntini  ha
scritto:

> We've implemented travis-ci build [1] to test ansible-openwisp2 on the
> following Linux Distribution:
>
>- CentOS 7
>- Ubuntu 16.04
>- Debian 8
>- Debian 9
>
> Travis-ci build test will be triggered on every push.
> [1] https://travis-ci.org/openwisp/ansible-openwisp2
>
> Regards,
>
> --
> Marco Giuntini
> GTalk: marco.giunt...@gmail.com
> Skype: hispanico70420
> Twitter: @Hispanico81
> PGP Key ID: BD774009
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Failed to connect to controller while getting checksum: curl exit code 77

2018-04-18 Thread Federico Capoano
In that case the best solution would be to put the self created CA in the
system's trusted CA so the SSL verification would pass.
I haven't tried this yet but when I will do I'll report how to do this.

Disabling SSL verification in a production environment is highly
discouraged in all cases. Routers could be subject to man in the middle
attacks, an attacker could pretend to be OpenWISP and inject an arbitrary
configuration, which would then allow him to root SSH into the routers.
So unless you are using OpenWISP in your home or in a small office in which
you trust everyone, SSL should never be disabled in production, otherwise
you incur in the risk of malicious people being able to do criminal
activities from your own routers which in turn send packets to the public
internet from your own IP addresses, in that case in most countries the
police would come to your door and ask questions. You won't go to jail but
if you run a business your reputation will be compromised.

Saving time to properly configure SSL doesn't sound like a good investment
considered the risk involved, IMHO.

Think about it and let it sink.
Federico


Il mer 18 apr 2018, 11:24 Артур Скок  ha scritto:

> Disabling the SSL verification may work, but it's not a good practice for
> production environments because it's insecure so it should be used only as
> a temporary solution. (c)
> May by they use self-signed cert in local network. In this case there is
> not big risk.
>
> 2018-04-18 19:01 GMT+05:00 Federico Capoano :
>
>> From https://curl.haxx.se/libcurl/c/libcurl-errors.html
>>
>> CURLE_SSL_CACERT_BADFILE (77)
>>
>> Problem with reading the SSL CA cert (path? access rights?)
>>
>> Disabling the SSL verification may work, but it's not a good practice for
>> production environments because it's insecure so it should be used only as
>> a temporary solution.
>>
>> What SSL library are you using? openssl, mbedtls or cyassl?
>>
>> Federico
>>
>> On Wed, Apr 18, 2018 at 7:53 AM Артур Скок  wrote:
>>
>>> Hi.
>>> Try to use "option verify_ssl '0'"
>>>
>>> 2018-04-18 15:41 GMT+05:00 Nam Lê :
>>>
>>>> Hi all,
>>>>
>>>> I can't connect between openwisp agent and controller.
>>>>
>>>> Log agent show code 77 .
>>>> Wed Apr 18 10:35:49 2018 daemon.err openwisp: Failed to connect to
>>>> controller while getting checksum: curl exit code 77
>>>>
>>>> I installed openwisp-config-no-sll on agent and this is
>>>> /etc/config/openwisp
>>>>
>>>> config controller 'http'
>>>> option url 'https://10.0.1.253'
>>>> #option interval '120'
>>>> #option verify_ssl '1'
>>>> #option shared_secret ''
>>>> #option consistent_key '1'
>>>> #option mac_interface 'eth0'
>>>> #option merge_config '1'
>>>> #option test_config '1'
>>>> #option test_script '/usr/sbin/mytest'
>>>> option uuid '01619bd52e3e4f468ab7xx'
>>>> option key 'SU0kQIV1Jkaa70UK9AYbx'
>>>> list unmanaged 'system.@led'
>>>> list unmanaged 'network.loopback'
>>>> list unmanaged 'network.@switch'
>>>> list unmanaged 'network.@switch_vlan'
>>>> # curl options
>>>> #option connect_timeout '15'
>>>> #option max_time '30'
>>>> #option capath '/etc/ssl/certs'
>>>>
>>>> And how I do? Please help me! Thanks everyone.
>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Failed to connect to controller while getting checksum: curl exit code 77

2018-04-18 Thread Federico Capoano
>From https://curl.haxx.se/libcurl/c/libcurl-errors.html

CURLE_SSL_CACERT_BADFILE (77)

Problem with reading the SSL CA cert (path? access rights?)

Disabling the SSL verification may work, but it's not a good practice for
production environments because it's insecure so it should be used only as
a temporary solution.

What SSL library are you using? openssl, mbedtls or cyassl?

Federico

On Wed, Apr 18, 2018 at 7:53 AM Артур Скок  wrote:

> Hi.
> Try to use "option verify_ssl '0'"
>
> 2018-04-18 15:41 GMT+05:00 Nam Lê :
>
>> Hi all,
>>
>> I can't connect between openwisp agent and controller.
>>
>> Log agent show code 77 .
>> Wed Apr 18 10:35:49 2018 daemon.err openwisp: Failed to connect to
>> controller while getting checksum: curl exit code 77
>>
>> I installed openwisp-config-no-sll on agent and this is
>> /etc/config/openwisp
>>
>> config controller 'http'
>> option url 'https://10.0.1.253'
>> #option interval '120'
>> #option verify_ssl '1'
>> #option shared_secret ''
>> #option consistent_key '1'
>> #option mac_interface 'eth0'
>> #option merge_config '1'
>> #option test_config '1'
>> #option test_script '/usr/sbin/mytest'
>> option uuid '01619bd52e3e4f468ab7xx'
>> option key 'SU0kQIV1Jkaa70UK9AYbx'
>> list unmanaged 'system.@led'
>> list unmanaged 'network.loopback'
>> list unmanaged 'network.@switch'
>> list unmanaged 'network.@switch_vlan'
>> # curl options
>> #option connect_timeout '15'
>> #option max_time '30'
>> #option capath '/etc/ssl/certs'
>>
>> And how I do? Please help me! Thanks everyone.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Help accessing openwisp

2018-04-18 Thread Federico Capoano
This line: You may need to add '10.85.18.14' to ALLOWED_HOSTS.

Is a good clue.

Could you paste the contents of your playbook.yml please?

Federico


On Wed, Apr 18, 2018 at 7:38 AM Артур Скок  wrote:

> Hello.
> Django's "problem" that you need restart not only nginx but also uwsgi
> which intermediate between nginx and python.
>
>
>
>
> *cd /opt/openwisp2source ./env/bin/activateps aux  |  grep -i uwsgi  |
> awk '{print $2}'  |  xargs sudo kill -9*
>
>
> *#if UWSGI will not start automatically (check with "netstat -anolp | grep
> uwsgi")uwsgi --ini /opt/openwisp2/uwsgi.ini*
>
>
> */etc/init.d/nginx restart*
>
> *deactivate*
>
>
> 2018-04-17 22:02 GMT+05:00 Rafael Silva Daniel <
> rafaelsilvadan...@gmail.com>:
>
>> Hello arthur! thanks for also looking at my case too!
>>
>> i checked these logs, error.log says:
>>
>> ERROR 2018-04-16 19:53:23,300] module: exception, process: 536, thread:
>> 140546850326272
>> Invalid HTTP_HOST header: '10.85.18.14'. You may need to add
>> '10.85.18.14' to ALLOWED_HOSTS.
>>
>>
>> [ERROR 2018-04-16 20:23:46,934] module: exception, process: 536, thread:
>> 140547369068288
>> Invalid HTTP_HOST header: '10.85.18.14'. You may need to add
>> '10.85.18.14' to ALLOWED_HOSTS.
>>
>>
>> [ERROR 2018-04-16 20:23:47,165] module: exception, process: 536, thread:
>> 140546850326272
>> Invalid HTTP_HOST header: '10.85.18.14'. You may need to add
>> '10.85.18.14' to ALLOWED_HOSTS.
>>
>>
>> [ERROR 2018-04-17 12:06:42,294] module: exception, process: 536, thread:
>> 140547369068288
>> Invalid HTTP_HOST header: '10.85.18.14'. You may need to add
>> '10.85.18.14' to ALLOWED_HOSTS.
>>
>>
>> daphne.log says:
>>
>>  UserWarning: You do not have a working installation of the
>> service_identity module: 'cannot import name 'opentype''.  Please install
>> it from <https://pypi.python.org/pypi/service_identity> and make sure
>> all of its dependencies are satisfied.  Without the service_identity
>> module, Twisted can perform only rudimentary TLS client hostname
>> verification.  Many valid certificate/hostname mappings may be rejected.
>> :0: UserWarning: You do not have a working installation of the
>> service_identity module: 'cannot import name 'opentype''.  Please install
>> it from <https://pypi.python.org/pypi/service_identity> and make sure
>> all of its dependencies are satisfied.  Without the service_identity
>> module, Twisted can perform only rudimentary TLS client hostname
>> verification.  Many valid certificate/hostname mappings may be rejected.
>>
>>
>>
>> and the runworkr.log says, various lines about calling files, but these
>> two errors:
>>
>> raise socket.error(SERVER_CLOSED_CONNECTION_ERROR)
>> OSError: Connection closed by server.
>>
>>
>> as you referenced to me, i included 10.85.18.14 in ALLOWED_HOSTS in
>> settings.py
>>
>> and the output of the two commands suggested:
>>
>> netstat -anolp | grep 443
>> tcp0  0 0.0.0.0:443 0.0.0.0:*
>>  LISTEN  503/nginx: master p  off (0.00/0/0)
>>
>>
>> and the other:
>>
>> netstat -anolp | grep uwsgi
>> tcp0  0 127.0.0.1:3031  0.0.0.0:*
>>  LISTEN  586/uwsgioff (0.00/0/0)
>> unix  3  [ ] STREAM CONNECTED 13178586/uwsgi
>> unix  3  [ ] STREAM CONNECTED 13179586/uwsgi
>> unix  3  [ ] STREAM CONNECTED 13367586/uwsgi
>> unix  3  [ ] STREAM CONNECTED 13180586/uwsgi
>> unix  3  [ ] STREAM CONNECTED 13177586/uwsgi
>> unix  3  [ ] STREAM CONNECTED 13368586/uwsgi
>>
>>
>>
>> i think the problem is that i dont have any kwnolege about ngnix and
>> little pratical kwnolege of http servers :(, i will study about nignix to
>> be able to troubleshoot it better
>>
>>
>> 2018-04-17 10:19 GMT-03:00 Артур Скок :
>>
>>> Hello.
>>> /opt/openwisp2/log folder may contain more comprehensive information.
>>> In most cases openwisp returns same error on malformed request but it is
>>> strange if there is "clear" installation.
>>> Also check section ALLOWED_HOSTS at /opt/openwisp2/openwisp2/settings.py
>>> Could you report output of next commands?
>>

Re: [openwisp] Re: Small actions that will help OpenWISP

2018-04-17 Thread Federico Capoano
Sorry, it's spelled Henrique I guess :-)

On Tue, Apr 17, 2018 at 10:44 AM Federico Capoano <
federico.capo...@gmail.com> wrote:

> Hi Enrique,
>
> We could do that but if we published this on the openwisp website it would
> look like auto promotion and not as good as other people independently
> publishing their own opinion on their own channels.
>
> if you don't have a blog, you could use https://medium.com, is a great
> platform.
>
> Federico
>
> On Tue, Apr 17, 2018 at 9:04 AM henriqsc 
> wrote:
>
>> Hello, that could be created a space on github for us to post a brief
>> description on how we've been using openwisp (use cases) if github allows
>> that.
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Small actions that will help OpenWISP

2018-04-17 Thread Federico Capoano
Hi Enrique,

We could do that but if we published this on the openwisp website it would
look like auto promotion and not as good as other people independently
publishing their own opinion on their own channels.

if you don't have a blog, you could use https://medium.com, is a great
platform.

Federico

On Tue, Apr 17, 2018 at 9:04 AM henriqsc  wrote:

> Hello, that could be created a space on github for us to post a brief
> description on how we've been using openwisp (use cases) if github allows
> that.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Help accessing openwisp

2018-04-16 Thread Federico Capoano
That would be great Rafael.

The repo which contains our documentation is here:
https://github.com/openwisp/openwisp2-docs
The result is published automatically at http://openwisp.io/docs/

Please also read these two pages when you have time:

   - http://openwisp.io/docs/general/help-us.html
   - http://openwisp.io/docs/developer/contributing.html

Thanks
Federico

On Mon, Apr 16, 2018 at 4:42 PM Rafael Silva Daniel <
rafaelsilvadan...@gmail.com> wrote:

> Thanks very much for the response Federico! i will read this carefully
> right now! really, thank you!
>
> I understand what you are saying about the documentation, i would be very
> happy  in contribute with the community in this after i gained more
> knowlege about openwisp, i can help with it in some way?
>
>
> Em segunda-feira, 16 de abril de 2018 16:35:42 UTC-3, Federico Capoano
> escreveu:
>
>> Please read this paragraph carefully:
>> https://github.com/openwisp/ansible-openwisp2#run-the-playbook
>>
>> if more people would contribute to the community we'd have better
>> documentation.
>> Unfortunately at the moment the number of users that are helping us to
>> improve the documentation is close to zero.
>> So either help us or at least take the time to read what's already
>> provided.
>>
>> I hope this helps.
>>
>> Best regards
>> Federico
>>
>> On Mon, Apr 16, 2018 at 4:27 PM Rafael Silva Daniel <
>> rafaelsi...@gmail.com> wrote:
>>
> Please help me!
>>>
>>> so, the scenario: we have 48 enteresasys access points, that were
>>> managed by a c5210 wireless controller, also from enterasys, but that shit
>>> simply died, i started in the company this year to propose open source
>>> solutions, because here is a goverment office, we cant buy equipment so
>>> easily because of beurocratical reasons, so we need to fix it with an open
>>> source solution, im reading about open wisp for a week now, i installed
>>> openwisp using this how tos:
>>>
>>> http://openwisp.org/whatis.html
>>> https://github.com/openwisp/ansible-openwisp2
>>>
>>> http://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
>>>
>>> after the process referenced by these how tos the outputwas:
>>>
>>>
>>> root@OpenWISP-Deployer:~# ansible-playbook -i hosts playbook.yml -u
>>> root -k --become -K
>>> SSH
>>> password:
>>> SUDO password[defaults to SSH password]:
>>>
>>> PLAY [openwisp2]
>>> **
>>>
>>> TASK [Gathering Facts]
>>> 
>>> ok: [OpenWISP2-Wireless-Controller]
>>>
>>> TASK [Stouts.postfix : include_tasks]
>>> *
>>> included: /root/.ansible/roles/Stouts.postfix/tasks/postfix.yml for
>>> OpenWISP2-Wireless-Controller
>>>
>>> TASK [Stouts.postfix : include_tasks]
>>> *
>>> included: /root/.ansible/roles/Stouts.postfix/tasks/install.deb.yml for
>>> OpenWISP2-Wireless-Controller
>>>
>>> TASK [Stouts.postfix : Install requirements (Debian)]
>>> *
>>> ok: [OpenWISP2-Wireless-Controller] => (item=[u'postfix',
>>> u'ca-certificates', u'mailutils', u'libsasl2-modules'])
>>>
>>> TASK [Stouts.postfix : Install DKIM requirements (Debian)]
>>> 
>>> skipping: [OpenWISP2-Wireless-Controller] => (item=[])
>>>
>>> TASK [Stouts.postfix : Install postfix-pcre]
>>> **

Re: [openwisp] Help accessing openwisp

2018-04-16 Thread Federico Capoano
Please read this paragraph carefully:
https://github.com/openwisp/ansible-openwisp2#run-the-playbook

if more people would contribute to the community we'd have better
documentation.
Unfortunately at the moment the number of users that are helping us to
improve the documentation is close to zero.
So either help us or at least take the time to read what's already provided.

I hope this helps.

Best regards
Federico

On Mon, Apr 16, 2018 at 4:27 PM Rafael Silva Daniel <
rafaelsilvadan...@gmail.com> wrote:

> Please help me!
>
> so, the scenario: we have 48 enteresasys access points, that were managed
> by a c5210 wireless controller, also from enterasys, but that shit simply
> died, i started in the company this year to propose open source solutions,
> because here is a goverment office, we cant buy equipment so easily because
> of beurocratical reasons, so we need to fix it with an open source
> solution, im reading about open wisp for a week now, i installed openwisp
> using this how tos:
>
> http://openwisp.org/whatis.html
> https://github.com/openwisp/ansible-openwisp2
>
> http://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
>
> after the process referenced by these how tos the outputwas:
>
>
> root@OpenWISP-Deployer:~# ansible-playbook -i hosts playbook.yml -u root
> -k --become -K
>   SSH password:
> SUDO password[defaults to SSH password]:
>
> PLAY [openwisp2]
> **
>
> TASK [Gathering Facts]
> 
> ok: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : include_tasks]
> *
> included: /root/.ansible/roles/Stouts.postfix/tasks/postfix.yml for
> OpenWISP2-Wireless-Controller
>
> TASK [Stouts.postfix : include_tasks]
> *
> included: /root/.ansible/roles/Stouts.postfix/tasks/install.deb.yml for
> OpenWISP2-Wireless-Controller
>
> TASK [Stouts.postfix : Install requirements (Debian)]
> *
> ok: [OpenWISP2-Wireless-Controller] => (item=[u'postfix',
> u'ca-certificates', u'mailutils', u'libsasl2-modules'])
>
> TASK [Stouts.postfix : Install DKIM requirements (Debian)]
> 
> skipping: [OpenWISP2-Wireless-Controller] => (item=[])
>
> TASK [Stouts.postfix : Install postfix-pcre]
> **
> skipping: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : include_tasks]
> *
> skipping: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : include_tasks]
> *
> skipping: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : include_tasks]
> *
> skipping: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : Ensure /etc/postfix directory is owned by root
> user]
> ***
> ok: [OpenWISP2-Wireless-Controller]
>
> TASK [Stouts.postfix : Configure postfix pt. 1]
> ***
> ok: [OpenWISP2-Wireless-Controller] => (item=main.cf)
> ok: [OpenWISP2-Wireless-Controller] => (item=master.cf)
>
> TASK [Stouts.postfix : Configure postfix pt. 2]
> ***
> skipping: [O

Re: [openwisp] Certificates revocation

2018-04-09 Thread Federico Capoano
Hi Arthur,

Yes, the x509  module of OpenWISP
2 has a revocation feature (Admin › Public Key Infrastructure ›
Certificates > select certificate to revoke > choose "Revoke selected
certificates") - BUT, in order to be enforced, the CRL (Certificate
Revocation List), must be installed, periodically updated and enforced, so
in case of OpenVPN it means the OpenVPN server configuration must have the
CRL option set in order to read from the filesystem and there should
something like a cronjob which every X hours downloads the CRL and puts it
where OpenVPN reads it.

How to find the link to download the CRL?
Each Certification Authority has a CRL, so the link can be found by going
into the certification authority edit page and then click on the "Download
CRL" button in the upper right corner as shown in the following screenshot.

[image: Screenshot from 2018-04-09 11-42-44.png]
×
I hope this helps.

Thanks for asking this question here and not on chat BTW. Since this is not
documented yet, the archived discussion will be indexed on search engine
and will surely help out more people in the near future, at least once
we'll be able to attract more technical writers contributors who'll help me
documenting all the basic openwisp2 features.

Federico


On Mon, Apr 9, 2018 at 3:14 AM BlancLoup  wrote:

> Hello.
> Is there any certification revocation mechanism at OpenWisp Controller?
> For example, if OpenVPN server certificate was compromised. How to
> distribute newly created certificates for all clients simultaneously?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating

2018-04-05 Thread Federico Capoano
Cool!

You can implement versoning in a very simple way by using django-reversion.
OpenWISP 2 does that in some of its models already:
https://github.com/openwisp/django-netjsonconfig/blob/master/django_netjsonconfig/base/admin.py#L25

F.

On Thu, Apr 5, 2018 at 7:56 AM  wrote:

> So I'm working on a router-config-as-a-service kind of setup, where we
> provide routers, and a central configuration website (possibly with
> integration into config for other non-router systems too later on). The
> main goal is to let them set up VPN based routing between their office
> networks easily, but I don't want to limit what they can do with their
> routers. At the same time, there is no way they'll get to be root on our
> servers :)
>
> I do see the versioning issue - and have thought about letting you save
> user-defined backends as json-files (with both the schema and transform) in
> the source tree and have them appear next to the database backed ones, or
> adding a generic import/export functionality. I just haven't gotten there
> yet...
>
> I guess what's special about our set up is that the users of the config ui
> are actually customers, not our technicians... But on the other hand, maybe
> I'm over-engineering :P
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Using devices data in frontend

2018-04-04 Thread Federico Capoano
Hey BlancLoup,

These:
django_netjsonconfig/base/device.py
django_netjsonconfig/base/config.py 

are django model classes, these are the ones which contain the logic with 
which you can retrieve the device and configuration data.
More infomation regarding django models 
here: https://docs.djangoproject.com/en/2.0/topics/db/models/

The base admin classes are 
in 
https://github.com/openwisp/django-netjsonconfig/blob/master/django_netjsonconfig/base/admin.py
More information regarding the django admin 
here: https://docs.djangoproject.com/en/2.0/ref/contrib/admin/

openwisp-utils is a module which contains logic which is shared across 
several openwisp modules to avoid repetition and ease maintenance of common 
logic across modules, you should modify that module only if you think the 
change makes sense in other openwisp2 modules too.

If you have further questions, try to add more details.

Federico


On Wednesday, April 4, 2018 at 12:48:01 AM UTC-5, BlancLoup wrote:
>
> Hello.
> I've created django application "dashboard" in openwisp2 project that will 
> be used in frontend to list of devices with data: name of device, config 
> status and some additional metrics like temperature, network metrics, vpn 
> status.
> Additional metrics i've added by modifying admin:
> django_netjsonconfig/base/device.py
> django_netjsonconfig/base/config.py 
> django_netjsonconfig/controller/generics.py
> Now i try to get devices data for "dashboard" template. What model and 
> application should i use for this: openwisp_utils?
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating

2018-04-02 Thread Federico Capoano
Hey Egil,

looks great, I'm looking forward to set some time aside to test it whenever 
I have a chance.

I'm interested to know what is pushing you to let the user modify and 
transform the schema from the web UI. I wouldn't have thought about this 
because I thought having to code a backend and its logic in the traditional 
way (and possibly have it under version control) would have been more 
stable and would have encouraged people to publish third party backends on 
github/pypi - but that said, it can be useful if as you wrote someone needs 
to let their users change the schemas without giving them special access 
and privileges on the underlying linux system, although this would be quite 
an advanced use case, which is cool to see happen sooner than I expected!

Fed



On Wednesday, March 28, 2018 at 4:34:35 PM UTC-5, eg...@innovationgarage.no 
wrote:
>
> Heyas!
>
> I have recently been working on some tools on top of OpenWISP with the 
> goal of making it possible to configure multiple devices together in a 
> simplified way for special purposes. Using my code:
>
> * Multiple devices can be configured together in a single configuration 
> that refers to the devices for various roles (e.g. server, clients, 
> different types of clients…)
> * Configuration can be arbitrarily abstracted by a user by writing 
> transformations written in the SakForm JSON templating language (that is, 
> without accessing the python code or redeploying the server, and without 
> giving the user access to running arbitrary code on the server).
> * Configuration can optionally refer to other resources using drop-downs 
> (e.g. certificates, CA:s)
> * Docker containers running OpenWRT and OpenWISP can be deployed and 
> configured from OpenWISP.
>
> The code is very much an early prototype, but I'd like to show it to you 
> early on to get feedback!
>
> Code and documentation of the components: 
> https://innovationgarage.github.io/cloudberry/
>
> best regards,
> Egil Möller
> Innovationgarage AS
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Ansible Playbook error

2018-04-02 Thread Federico Capoano
Seems like a system error. Run "apt-get update" manually to find out what's 
wrong, you'll likely see some kind of error message which should be easy to 
fix if you google it. Let us know if this works out or if you find other 
roadblocks.

Fed


On Monday, April 2, 2018 at 6:44:44 AM UTC-5, d.la...@gmail.com wrote:
>
> hello! When i try to run Playbook, i am getting this kind on error!
>
> (item=[u'postfix', u'ca-certificates', u'mailutils', u'libsasl2-modules']) 
> => {"changed": false, "item": ["postfix", "ca-certificates", "mailutils", 
> "libsasl2-modules"], "msg": "Failed to update apt cache."}
>
> What can i do to fix it?
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Modifing/adding elements to json shema

2018-03-28 Thread Federico Capoano
Netjsonconfig always generates something in network when interfaces are
defined. If an interface in package network has proto "none" it does not do
much. It's done this way to keep the implementation simple and sane to
handle. Complexity can get out of control far too easily with systems like
OpenWISP.

Try with this:

{
"interfaces": [
{
"wireless": {
"network": [
"test"
],
"mode": "access_point",
"radio": "radio0",
"ssid": "test",
"hidden": false,
"wds": false,
"encryption": {
"protocol": "none"
},
"wmm": true,
"isolate": false
},
"type": "wireless",
"name": "test",
"mtu": 1500,
"network": "test"
}
]
}

Which generates:

package network

config interface 'test'
option ifname 'test'
option mtu '1500'
option proto 'none'

package wireless

config wifi-iface 'wifi_test'
option device 'radio0'
option hidden '0'
option ifname 'test'
option isolate '0'
option mode 'ap'
option network 'test'
option ssid 'test'
option wds '0'
option wmm '1'




On Wed, Mar 28, 2018 at 9:48 AM Yasen Atanasov  wrote:

> I was hoping to get a little insight with understanding where picies are
> stored and hol can i duplicate and modify one but ... :)
>
> The option with advanced mode is not what i've want. Because it creates a
> section in package network, and taht is waht i'm trying to avoid.
>
> The minimal uci config given for wireless interface is:
>
> package network
>
> config interface 'test'
>   option auto '1'
>   option enabled '1'
>   option ifname 'test'
>   option mtu '1500'
>   option proto 'none'
>
> package wireless
>
> config wifi-iface 'wifi_test'
>   option device 'radio'
>   option disabled '0'
>   option hidden '0'
>   option ifname 'test'
>   option isolate '0'
>   option macfilter 'disable'
>   option mode 'ap'
>   option wds '0'
>   option wmm '1'
>
> What i need is the things in "package wireless" . The option ifname should 
> take its value from input string field, not by interface name.
> And I think this template should be called "wirless netwowrk" and probably 
> should be in Radios section. JSON producing the above config is
>
> {
> "interfaces": [
> {
> "wireless": {
> "mode": "access_point",
> "rts_threshold": 0,
> "frag_threshold": 0,
> "radio": "radio",
> "ack_distance": 0,
> "ssid": "",
> "hidden": false,
> "wds": false,
> "encryption": {
> "protocol": "none"
> },
> "macfilter": "disable",
> "wmm": true,
> "maclist": [],
> "isolate": false,
> "network": []
> },
> "type": "wireless",
> "name": "test",
> "mtu": 1500,
> "disabled": false,
> "addresses": [],
> "autostart": true,
> "network": "",
> "mac": ""
> }
> ]
> }
>
> I have almost zero knowledge about json, and i'm prithee sure that i'm doing 
> something wrong, but...
> Isupose the jason i want is something like this :
>
> {
> "wireless": {
> "mode": "access_point",
> "rts_threshold": 0,
> "frag_threshold": 0,
> "radio": "radio",
> "ack_distance": 0,
> "ssid": "",
> "hidden": false,
> "wds": false,
> "encryption": {
> "protocol": "none"
> },
> "macfilter": "disable",
> "wmm": true,
> "maclist": [],
> "isolate": false,
> },
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Shell scripts to run on openwisp-config

2018-03-28 Thread Federico Capoano
I don't think binary files are possible.

In any case, I suggest to place these in your firmware image rather than in
the configuration.

Federico

On Wed, Mar 28, 2018 at 1:18 AM Артур Скок  wrote:

> We have custom build of OpenWRT with specific functions for same remote
> devices based on ARM. Now we try extend OpenWisp functions:
> - "heartbeat" detailed status info of devices (almost done)
> - simple packet management
> - firmware upgrade
> Last two functions need from openwisp only delivery functions. I've
> researched work of config-archive generation and how upgrade/update work on
> client side. I noticed if we could add any file to archive (hypothetically)
> then openwisp-config can place even binary files at needed place and then
> our client-side cron script will do other actions.
>
>
> 2018-03-28 0:14 GMT+05:00 Federico Capoano :
>
>> The OpenWISP backend contains logic that is needed for backward
>> compatibility with the old legacy version of OpenWISP Firmware (which was a
>> heavily customised OpenWRT based firmware).
>>
>> The generic file functionality in the OpenWRT backend allows you to add
>> any file you need. If you could specify what you are trying to accomplish
>> maybe I could point you in the right direction.
>>
>> I'm haven't understood what you are trying to do, nor I have understood
>> what do you mean for "client-side scripts".
>> If you help me understand you better I may be able to give more detailed
>> answers.
>>
>> Fed
>>
>> On Tue, Mar 27, 2018 at 1:34 PM Артур Скок  wrote:
>>
>>> Federico, thanks for reply.
>>> I've researched this manual earlier, but this one about
>>> creating/modifying plain files. But, as i undestood it, script
>>> netjsonconfig/backends/openwisp/openwisp.py contains logic for operations
>>> on specified files ts_script, install, etc: execution, installing, schedule
>>> tasks.
>>> But i did not find suitable logic in client-side scripts.
>>>
>>> 2018-03-27 21:22 GMT+05:00 Federico Capoano 
>>> :
>>>
>>>> You can add any file/script in the OpenWRT backend by using the "files"
>>>> section.
>>>>
>>>> Read this section:
>>>> http://netjsonconfig.openwisp.org/en/stable/backends/openwrt.html#including-additional-files
>>>>
>>>> I hope it helps.
>>>>
>>>> Fed
>>>>
>>>> On Mon, Mar 26, 2018 at 2:57 AM BlancLoup 
>>>> wrote:
>>>>
>>>>> Hello. How scripts generating for client side works?
>>>>> I found that openwisp backend module
>>>>> (netjsonconfig/backends/openwisp/openwisp.py) can generate special files
>>>>> for client: install.sh, uninstall.sh, ts_script.sh and has additional
>>>>> workaround for crontab files. But i cannot find any processing of these on
>>>>> clientside in openwisp-config scripts. Is these all for future
>>>>> implementations?
>>>>>
>>>>> --
>>>>> 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+unsubscr...@googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Shell scripts to run on openwisp-config

2018-03-27 Thread Federico Capoano
The OpenWISP backend contains logic that is needed for backward
compatibility with the old legacy version of OpenWISP Firmware (which was a
heavily customised OpenWRT based firmware).

The generic file functionality in the OpenWRT backend allows you to add any
file you need. If you could specify what you are trying to accomplish maybe
I could point you in the right direction.

I'm haven't understood what you are trying to do, nor I have understood
what do you mean for "client-side scripts".
If you help me understand you better I may be able to give more detailed
answers.

Fed

On Tue, Mar 27, 2018 at 1:34 PM Артур Скок  wrote:

> Federico, thanks for reply.
> I've researched this manual earlier, but this one about creating/modifying
> plain files. But, as i undestood it, script
> netjsonconfig/backends/openwisp/openwisp.py contains logic for operations
> on specified files ts_script, install, etc: execution, installing, schedule
> tasks.
> But i did not find suitable logic in client-side scripts.
>
> 2018-03-27 21:22 GMT+05:00 Federico Capoano :
>
>> You can add any file/script in the OpenWRT backend by using the "files"
>> section.
>>
>> Read this section:
>> http://netjsonconfig.openwisp.org/en/stable/backends/openwrt.html#including-additional-files
>>
>> I hope it helps.
>>
>> Fed
>>
>> On Mon, Mar 26, 2018 at 2:57 AM BlancLoup  wrote:
>>
>>> Hello. How scripts generating for client side works?
>>> I found that openwisp backend module
>>> (netjsonconfig/backends/openwisp/openwisp.py) can generate special files
>>> for client: install.sh, uninstall.sh, ts_script.sh and has additional
>>> workaround for crontab files. But i cannot find any processing of these on
>>> clientside in openwisp-config scripts. Is these all for future
>>> implementations?
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Better understand of Openwisp-radius

2018-03-27 Thread Federico Capoano
PfSense, OpnSense, Coova-Chilli, there may be other ones as well. I'm not
an expert when it comes to captive portals.

I hope other readers can provide suggestions as well.

Fed

On Sat, Mar 24, 2018 at 4:26 AM DEKOU WILLIAM 
wrote:

> I am looking for a captive portal
>
> Please list such open source
>
> On Sat, Mar 24, 2018 at 2:39 AM, Federico Capoano <
> federico.capo...@gmail.com> wrote:
>
>> Hi William,
>>
>> I am not sure I understood what you're looking for.
>>
>> Are you looking for a captive portal? A network analyzer or inspector?
>>
>> OpenWISP can be used with popular open source solutions that provide this
>> kind of functionality.
>>
>> But to give a better answer I need a bit more context and details.
>>
>> Fed
>>
>>
>> Il ven 23 mar 2018, 19:00 DEKOU WILLIAM  ha
>> scritto:
>>
>>> Hi everyone,
>>>
>>> I will like to contribute to this project but it is not clear in my mind.
>>>
>>> My question:
>>> Is there any gateway(That works on OpenWRT and compatible with
>>> FreeRADIUS) that will catch all user request and forward it to
>>> Openwisp-radius for monitoring/management purposes?
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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/2BqoyrBEO1E/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> openwisp+unsubscr...@googlegroups.com.
>>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Coordialement
>
> *William K. DEKOU *
> *Polytechnicien de Yaoundé, Génie Informatique*
> *Promotion 2018*
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Shell scripts to run on openwisp-config

2018-03-27 Thread Federico Capoano
You can add any file/script in the OpenWRT backend by using the "files"
section.

Read this section:
http://netjsonconfig.openwisp.org/en/stable/backends/openwrt.html#including-additional-files

I hope it helps.

Fed

On Mon, Mar 26, 2018 at 2:57 AM BlancLoup  wrote:

> Hello. How scripts generating for client side works?
> I found that openwisp backend module
> (netjsonconfig/backends/openwisp/openwisp.py) can generate special files
> for client: install.sh, uninstall.sh, ts_script.sh and has additional
> workaround for crontab files. But i cannot find any processing of these on
> clientside in openwisp-config scripts. Is these all for future
> implementations?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Modifing/adding elements to json shema

2018-03-27 Thread Federico Capoano
Try using this example in the advanced mode (remove the python comments
because the advanced mode expects pure JSON):
http://netjsonconfig.openwisp.org/en/stable/backends/openwrt.html#wireless-attached-to-a-different-network

If you don't get the result you want, post a sample of your NetJSON
configuration, including the UCI result you want to get instead.

Fed


On Tue, Mar 27, 2018 at 3:19 AM Yasen Atanasov  wrote:

> Hi ppl,
>
> Can someone tell me where can I edit wireless interface schema or add
> alternative one?
>
> The problem is that the current creates interface with mandatory settings
> in package network. What I need is wirless settings that can be attached to
> already existing interface.
>
> The user case is as follows:  Dedicated vlan for eduroam and 2 wifi
> networks with the same ssid on 2.4 and 5 GHz.
>
> If i setup things manualy, i have one interface for management and one
> bridge for eduroam containig vlan interface and two wifi networks.
>
> If i try to replicate that config with openwisp2 i end up with 4
> interfaces and one bridge 3 of them  which is not optimal, I think
>
> Any help am sugestions will be apriciated.
>
> Yasen
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Better understand of Openwisp-radius

2018-03-23 Thread Federico Capoano
Hi William,

I am not sure I understood what you're looking for.

Are you looking for a captive portal? A network analyzer or inspector?

OpenWISP can be used with popular open source solutions that provide this
kind of functionality.

But to give a better answer I need a bit more context and details.

Fed


Il ven 23 mar 2018, 19:00 DEKOU WILLIAM  ha scritto:

> Hi everyone,
>
> I will like to contribute to this project but it is not clear in my mind.
>
> My question:
> Is there any gateway(That works on OpenWRT and compatible with FreeRADIUS)
> that will catch all user request and forward it to Openwisp-radius for
> monitoring/management purposes?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Introduction

2018-03-23 Thread Federico Capoano
Hey man,

sorry but I didn't understand your question regarding compiling openwrt and
creating a new web GUI nor how these topics are related to OpenWISP.

Could you add some more context and details please?

Federico


Il gio 22 mar 2018, 08:30 djhamzas theyellow  ha
scritto:

> Hello,
>
>
> I was last months compiling and recompiling  Openwrt   over and over and
> trying to recreate a new GUI web , am good in compilation but still have
> work to do in programing,
>
> This project my help  so exiting to be one of you ,  Still need  structure
> of web GUI  to make some change .
>
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Discussiong points of project 'Ansible plugin for netjsonconfig library'

2018-03-23 Thread Federico Capoano
This project doesn't have much to do with ansible-openwisp2-imagegenerator.

The goal is to develop an ansible extension that allows to describe the
configuration of a router/device using the features of netjsonconfig: the
ability to pass a NetJSON file (or its equivalent in YAML) and templates.

The final goal is to use this to push configuration updates to devices.
Using a well known tool like ansible under the hood can open a huge number
of possibilities for OpenWISP.

Fed

Il mer 21 mar 2018, 12:05 Ankit Kataria  ha
scritto:

> so basically it needs a implementation similar to
> https://github.com/openwisp/ansible-openwisp2-imagegenerator but for
> openWRT devices. right?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] GSoC 2018 - netjsongraph.js

2018-03-23 Thread Federico Capoano
Hi Liang,

the outcome of the real time updates is to have some methods that allow
updating an already drawn graphs with fresh data which will come from the
network, likely via websocket but the library should not be concerned with
that, it should simply allow to update the network graph with new data in a
simple way.

You should base your work on netjsongraph.js master only.

The best way to get involved is clone the repo, install it, run the tests,
find small things to improve, write a good proposal and so on.

I hope this helps!
Federico


Il mer 21 mar 2018, 19:59  ha scritto:

> Good morning everyone!
>
> l have already shared my initial proposal. l want to know more about this
> project.
>
> Real time updates - What's the expected outcome of that? Should l update
> the related repositories using netjsongraph.js or implement it under the
> current repository?
>
> And l see the current netjsongraph.js repo is not in active development,
> how can l get involved in it?
>
> Best wishes,
> Liang
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: support for channels2.0

2018-03-23 Thread Federico Capoano
Hi James,

no, that's not planned yet, the timing for the release of django-loci was a
bit unlucky because the django channels 2.0 release came just a bit after
django-loci was released.

The good thing is that there are some basic automated tests in place so if
anyone is acquainted in migrating to channels 2.0 it should be doable with
a reasonably limited amount of effort and that would be very welcome!

Federico


Il gio 22 mar 2018, 03:14 James Muchiri  ha scritto:

>
>
> On Thursday, March 22, 2018 at 11:13:05 AM UTC+3, James Muchiri wrote:
>>
>> has anyone started work on this?
>>
> Sorry. Am asking specifically for the django-loci  application
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Small actions that will help OpenWISP

2018-03-21 Thread Federico Capoano
You don’t need necessarily to be a programmer in order to help out.

An apparently insignificant action can have a very positive impact on the 
project and in this page we’ll explain why it’s in your interest to help 
the project grow.

*Keep reading help us to grow 
*.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Google Summer of Code: netengine

2018-03-19 Thread Federico Capoano
in 2014 we tried to run tests by connecting to real devices, that makes it
impossible to run the test suite on travis-ci and also makes it very hard
for new contributors to run the tests because they have to have all the
hardware needed to run the tests, which is very unpractical.

For mocking, we mean this:
https://realpython.com/blog/python/testing-third-party-apis-with-mocks/
It means using the standard mock library of python to temporarily replace
methods that perform external calls with simulations that behave in the
same way but are just simulated.
So if you perform an HTTP request and you expect a JSON response like
{"detail": "success"}, you mock the method which performs the request so it
returns that value without even performing the request.

Is it clear now?

Federico

On Sun, Mar 18, 2018 at 11:15 AM Alessia Ventani 
wrote:

> Good afternoon,
>
> I'm writing the draft for the netengine project. What does it mean: "mock
> all external network calls during tests (SSH, HTTP, SNMP)"?
> Will I report some examples of tests where it's useful use mock or simply
> the library that I will use?
>
> thank you,
> Alessia Ventani
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Understanding the points mentioned in Django-Freeradius

2018-03-18 Thread Federico Capoano
Hey Hargovind, I don't find that exact passage in the idea list
, I find instead:

*integrate django-freeradius in the rest of the openwisp2 ecosystem; we
will create a new wrapper python package (openwisp-radius) that will wrap
django-freeradius and add multitenancy features to it, similarly to how
openwisp-controller wraps django-netjsonconfig or openwisp-network-topology
wraps django-netjsongraph*

To understand this point in practice, take a look at how
openwisp-controller basically wraps and extends other base modules:

   -
   
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py
   -
   
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/controller/views.py
   -
   
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/pki/admin.py

If you have further questions, please don't hesitate.

Federico


On Sun, Mar 18, 2018 at 10:18 AM Hargovind Singh Arora <
hargovind...@gmail.com> wrote:

> Hey Fed and Rohith I wanted to know that what do you mean about this in
> the Django-freeradius project - "integrate Django-freeradius in the rest of
> the openwisp2 ecosystem ForeignKey/PrimaryKey in the model". Can you please
> explain more?
>
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Introduction

2018-03-17 Thread Federico Capoano
Hi Winston,

I don't understand very well technically what you are talking about, is
this some sort of multihoming or multipath TCP?

Federico

On Fri, Mar 16, 2018 at 2:24 PM Winston Conner 
wrote:

> Hey guys! My name is Winston Conner. I am a twenty-year-old CS student at
> the University of North Georgia and I am highly interested in expanding my
> current skill set while simultaneously learning new skills! I feel as if
> GSoC is the perfect opportunity to do this! So, I would like to submit a
> draft idea for criticism from the community. My main reason for doing this
> is to see if it is even relevant to the main focus of the project and to
> see if it is even accomplishable in the time frame. My idea is as follows.
> I want to help create or create software that would either coexist within
> OpenWisp2 or possibly even be separate from the software if necessary. My
> idea is this: to create software that would allow users to pull from
> several different networks in order to provide the necessary bandwidth for
> individuals to complete tasks efficiently.  This would allow users to use a
> variety of different wifi sources to accomplish their downloads, uploads,
> and other online activity. This could be extremely helpful as it would mean
> people who are having their productivity cut as a result of slow or limited
> internet speeds would be able to connect to a variety of public and private
> networks in order to distribute the load for maximum efficiency. Is this
> possible? Doable in the time limit? Relevant? Any feedback is helpful! Good
> luck to all! If my idea is any good I would hope no one would steal it! :(
>
> Thank you all for your very valuable time.
>
> -Winston Conner
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] GSOC 18 - Draft shared

2018-03-16 Thread Federico Capoano
Hi Anurag, we will review the applications this weekend.

Regarding django-ipam, are you afraid only about the precise model
attributes or is any other question?

We'll send you access to a phpmyipam instance so you can understand better.

Federico


On Fri, Mar 16, 2018 at 5:15 AM Anurag Sharma  wrote:

> I have shared my draft proposal on the GSoC portal, if possible please
> review it as I wanted to submit the final proposal well ahead of deadline ?
>
> Apart from that, I am also planing to apply for the django-ipam project
> and here is what I could figure out as of now -
>
>- Create models for IPv4 and IPv6 and also for subnets. (They would
>probably be related)
>- Develop CRUD API as in django-freeradius
>- IP request module (will have research more about it
>
> The rest of the outcomes are self explanatory but for the models what all
> attributes would be there, that's one thing I am not sure about.
>
> Any help regarding this would be of a great help for me, while making the
> proposal.
>
>
> Thankyou,
>
> Anurag Sharma
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] What all features would be there under IPv4 and IPv6 management ? (django-ipam project)

2018-03-16 Thread Federico Capoano
Possibility to add, edit and delete database records that represent ipv4
and ipv6 addresses and subnet, including checking if the ip is already
taken, if the subnet is taken and similar.
See phpmyipam for reference.

Fed

On Wed, Mar 14, 2018 at 1:10 PM Anurag Sharma  wrote:

> Are there any specific list of features or functions that comes under
> IPv4/IPv6 management ?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Extending django-netjsonconfig

2018-03-16 Thread Federico Capoano
The simplest thing is to to override the ForeignKeys too as it's done in
here:
https://github.com/openwisp/openwisp-controller/blob/master/openwisp_controller/config/models.py#L82

In the future we may add swappable models (as in django-freeradius) if we
deem the cost is worth the effort.

I hope it helps!

Federico

On Wed, Mar 14, 2018 at 12:43 PM  wrote:

> I'm trying to follow https://github.com/openwisp/django-netjsonconfig#id2
> to extend the django-netjsonconfig app, making my own concrete models for
> each abstract model, but it seems I have to set the app-label for each
> concrete model to django_netjsonconfig for foreign keys to work. However,
> that in turn breaks migration generation. How is this supposed to work?
> Django 2, if that matters.
>
> Is there somewhere a full/working example app that does this that I could
> look at?
>
> Thanks in advance,
> Egil
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Restfull API's for openWisp2

2018-03-09 Thread Federico Capoano
Hi Chetansk and welcome,

our policy for building features is the following:

   - when a need to accomplish something arises
   - and this need is in line within our core values
   
   - and the need is strong enough that someone is willing to invest
   resources in building it
   - then we start evaluating it and we build it

Therefore, only some modules of OpenWISP have APIs for the moment:


   - the network-topoogy-module: because we needed to get the data to feed
   to the javascript data visualization library and because we needed routers
   to be able to send their topology data for collecting it
   - django-freeradius in order to communicate with freeradius without the
   limitations of SQL, using the freeradius-rml-rest
   
   module


For building Restful APIs in OpenWISP we use django-rest-framework
.

Here's the link to the APIs in the existing modules:

-
https://github.com/netjson/django-netjsongraph/tree/master/django_netjsongraph/api
-
https://github.com/openwisp/django-freeradius/tree/master/django_freeradius/api

You may as well develop the API you need without editing the source code of
OpenWISP. You can create a new django app, create the django rest framework
views and serializers, plug that into settings.INSTALLED_APPS and use it.
I'm pretty sure many people implemented their own custom APIs to do what
they need but probably the implementation wasn't good enough to share it in
the main project, but I'm just speculating. Some people simply edit open
source software and do not contribute to it, who knows, we don't have
metrics to measure this.

I guess that in the future as our community grows with more contributors
we'll have good (and secure) APIs to control every important aspect of
OpenWISP.

I hope this helps.
Federico


On Fri, Mar 9, 2018 at 5:37 AM  wrote:

> Hi,
>
> I was looking out for RESTfull API for openWISP2, a quick search did not
> lead to what I as looking for. Hence the question
>
> a, Is there a RESTful api for openWISP2 ?
> b. Can someone point me to docs
> c. Is someone planning/starting this stuff ?
>
>
> Thanks
> C
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Containers

2018-03-07 Thread Federico Capoano
Thanks a lot for sharing this information Egil.

In the future, if you need to ask questions and you don't find an answer in 
the main chat you can always post it here and I'll respond when I can.

Federico


On Wednesday, March 7, 2018 at 1:03:36 PM UTC+1, eg...@innovationgarage.no 
wrote:
>
> Talked about my project on the irc channel and got asked to advertise it 
> here too:
>
> I've developed a program that creates docker containers as per 
> configuration from openwisp (django-netjsonconfig). Each container is set 
> up to run openwrt and openwisp, and to connect to the same openwisp server.
>
> https://github.com/innovationgarage/cloudberry-docker-manager
>
> I hope to in the future develop this to use some cluster manager as a 
> back-end, instead of just a local docker. Possibly kubernetes (docker swarm 
> does not support running OpenVPN inside the containers, due to lacking cap 
> NET_ADMIN, which happens to be my main use-case)...
>
> Hope this is interesting to someone,
>
> Egil
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: OpenWISP2 Controller and μVirt

2018-03-03 Thread Federico Capoano
Hey Matthew,

wow, I didn't really expect seeing an ubuntu VM being created in OpenWRT by 
using the OpenWISP 2 web UI any time soon.. your work is impressive!
This could have many useful scenarios!

I highly suggest you to share this information on the OpenWRT and LEDE 
mailing lists as well!
Have you posted this kind of content on social media as well? If you post 
the links I'll share it on our channels.

Have you ever heard of OpenWRT Summit ? It 
happens every year around october, last year was in Prague, this year will 
likely be in Lisbon or Croatia, that's a good place to showcase this!

Federico


On Saturday, March 3, 2018 at 11:41:07 AM UTC+1, Mathew McBride wrote:
>
> Hi all,
> I'm Matt from Traverse Technologies ( www.traverse.com.au ) - we are 
> mainly a hardware design house but we also do a bit of Linux/OSS work to 
> support our hardware projects.
>
> I recently started working on μVirt, a virtual machine host for 64-bit ARM 
> machines, on top of OpenWrt using various OpenWrt technologies (UCI, procd).
> See here for more information: https://gitlab.com/traversetech/muvirt
>
> Since μVirt uses UCI it is possible to use any central management system 
> that works with UCI, and this is where OpenWISP comes in!
> I've extended netjsonconfig so OpenWISP can generate configurations for 
> uVirt, such as creating new virtual machines.
> See my branch here - 
> https://github.com/mcbridematt/netjsonconfig/tree/muvirt-support-public
>
> You can see a video demo in our latest Five64 project update - 
> https://www.crowdsupply.com/traverse-technologies/five64/updates/arm-virtualization-testing-and-next-steps
>  
> - skip towards the middle of the video at the bottom, where I demonstrate 
> provisioning a Ubuntu VM from an OpenWISP instance.
>  
> As uVirt is still a tech demo and no attempt to finalize the configuration 
> schema has been made, I don't intend to push this upstream at this stage, 
> but I will try to track closely.
> I have a container/docker version of 'our' modified controller in 
> development so anyone interested in our work can follow our development.
>
> Many thanks for everyone's work on OpenWISP - I've found it very useful 
> and we are looking at applying to other projects and experiments we are 
> involved in.
>
> Regards,
> Matt
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Introducing myself

2018-03-02 Thread Federico Capoano
Hi Himanshi,

Welcome!

Please read here in case you haven't 
yet: https://groups.google.com/d/msg/openwisp/ntIW6UaHHVs/ONpy4-SxCQAJ

Federico


On Friday, March 2, 2018 at 5:31:50 AM UTC+1, Himanshi Khandelwal wrote:
>
> Hello everyone, 
> I am a third year CS undergraduate and a Python developer. I have some 
> experience in developing RESTful APIs using Flask and django.
> I am looking forward to contribute here. Currently, I am going through the 
> starting material to understand how the whole thing works.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Question About Captive Portal

2018-02-28 Thread Federico Capoano
No I don't.

On Wed, Feb 28, 2018 at 8:46 PM  wrote:

> Hello! Do you know what techology FON.com are using? or how can i build
> simmilar?
>
> If you are talking about OpenWISP CaptivePortal Manager, yes, you can.
>> I also suggest you to look at alternatives like PfSense, OpnSense,
>> PacketFence.
>>
>> Federico
>>
>> On Wed, Feb 28, 2018 at 12:27 PM  wrote:
>>
>>> Hello! but can i still install captive portal on open wisp even if its
>>> not supported no more?
>>>
>>>
>>> Hey,

 OpenWISP doesn't have this feature currently.

 Federico

 On Sat, Feb 24, 2018 at 9:49 PM  wrote:

>
> Hello! Is there any solution i can build something like FON
> technology? Do you know if they are using openWIsp or they have something
> different?
>
>
>> Hi,
>>
>> development on OpenWISP Captive Portal has been discontinued.
>>
>> Federico
>>
>> On Sat, Feb 24, 2018 at 7:34 PM  wrote:
>>
> HelloI just wanted to ask,if i will use OpenWisp Captive portal
>>> manager, can i create captive portal like in FOn technology? For example
>>> buy network access?
>>>
>>> --
>>> 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.
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Question About Captive Portal

2018-02-28 Thread Federico Capoano
If you are talking about OpenWISP CaptivePortal Manager, yes, you can.
I also suggest you to look at alternatives like PfSense, OpnSense,
PacketFence.

Federico

On Wed, Feb 28, 2018 at 12:27 PM  wrote:

> Hello! but can i still install captive portal on open wisp even if its not
> supported no more?
>
>
> Hey,
>>
>> OpenWISP doesn't have this feature currently.
>>
>> Federico
>>
>> On Sat, Feb 24, 2018 at 9:49 PM  wrote:
>>
>>>
>>> Hello! Is there any solution i can build something like FON technology?
>>> Do you know if they are using openWIsp or they have something different?
>>>
>>>
 Hi,

 development on OpenWISP Captive Portal has been discontinued.

 Federico

 On Sat, Feb 24, 2018 at 7:34 PM  wrote:

>>> HelloI just wanted to ask,if i will use OpenWisp Captive portal manager,
> can i create captive portal like in FOn technology? For example buy 
> network
> access?
>
> --
> 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.


> For more options, visit https://groups.google.com/d/optout.
>
 --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] File upload in the template does not work

2018-02-26 Thread Federico Capoano
Hi Saurabh,

I don't have any idea of what that is happening. You may want to look into
https://github.com/jdorn/json-editor and eventually ask there, that's the
tool we are using to edit the configuration.

Federico

On Fri, Feb 23, 2018 at 11:39 AM Saurabh Chakrabarti <
saurabhchakraba...@gmail.com> wrote:

> Hi Team,
>
> I have a requirement of uploading a file in the template, which will
> eventually be downloaded on the device.
>
> For that I've added the following in the django-netjsonconfig schema
>
> "Upload": {
>>  "type": "object",
>>  "title": "Upload",
>>  "propertyOrder": 21,
>>  "minItems": 1,
>>  "maxItems": 1,
>>  "properties": {
>>  "files": {
>>  "type": "string",
>>  "format": "file",
>>  "title": "Upload File"
>> },
>>  },
>> },
>>
>
> When I try  to create a new template, I'm able to view the file upload
> button correctly. But once I save this config and try to view the template
> once again the 'Configuration Menu' breaks. Is there any way to find out
> why that happens?
>
> I've attached the 2 screenshots for reference.
>
> Regards,
> Saurabh
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Google Summer of Code application template

2018-02-26 Thread Federico Capoano
It's a the bottom of
https://summerofcode.withgoogle.com/organizations/4855677718102016/

On Sun, Feb 25, 2018 at 6:19 PM Anurag Sharma  wrote:

> Is there any particular application template that OpenWISP applicants must
> follow ?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Question About Captive Portal

2018-02-24 Thread Federico Capoano
Hey,

OpenWISP doesn't have this feature currently.

Federico

On Sat, Feb 24, 2018 at 9:49 PM  wrote:

>
> Hello! Is there any solution i can build something like FON technology? Do
> you know if they are using openWIsp or they have something different?
>
>
>> Hi,
>>
>> development on OpenWISP Captive Portal has been discontinued.
>>
>> Federico
>>
>> On Sat, Feb 24, 2018 at 7:34 PM  wrote:
>>
> HelloI just wanted to ask,if i will use OpenWisp Captive portal manager,
>>> can i create captive portal like in FOn technology? For example buy network
>>> access?
>>>
>>> --
>>> 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.
>>
>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Question About Captive Portal

2018-02-24 Thread Federico Capoano
Hi,

development on OpenWISP Captive Portal has been discontinued.

Federico

On Sat, Feb 24, 2018 at 7:34 PM  wrote:

> HelloI just wanted to ask,if i will use OpenWisp Captive portal manager,
> can i create captive portal like in FOn technology? For example buy network
> access?
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: django-freeradius project: GSoC 2018

2018-02-18 Thread Federico Capoano
Hi Tushar and welcome,

please read the announcement present at the top of this 
group: https://groups.google.com/d/msg/openwisp/ntIW6UaHHVs/ONpy4-SxCQAJ

Federico


On Monday, February 19, 2018 at 6:30:24 AM UTC+1, TUSHAR GOEL wrote:
>
> Hey, i am a sophomore at BITS Pilani and a GSoC aspirant. I have been 
> programming in Python and javascript for the past 5 years and i am well 
> versed with the python libraries such as Django, flask, numpy, scipy and 
> more. I have also done some projects in react and node. I wish to know who 
> is the mentor of the project *django-freeradius, *and how should i start 
> contributing in your organization.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Google Summer of Code 2018 (students & mentors please read this!)

2018-02-18 Thread Federico Capoano
Hi everyone,

at the beginning of the week we have been accepted again into the Google 
Summer of Code!
I could send this announcement only today because I have been super busy.

Please take a look at the project list page for 2018 
<http://openwisp.org/gsoc/ideas-2018.html>.

Students

Please read our GSoC guidelines 
<http://openwisp.io/docs/developer/google-summer-of-code.html> and the 
resources linked therein carefully to increase your chances of success and 
to save us a lot of precious time. 


*This year we will be very selective. We won't accept sloppy proposals nor 
students who have not contributed to our community in anyway.*

Therefore if you want to increase your chances start early, help one 
another and contribute.
GSoC is ultimately a way for you to learn the good practices of open source 
development.
*Getting accepted is a privilege: accepted students are going to be paid to 
work on open source and be taught skills that are extremely valuable.*

Mentors

If you think you have the skills and time to mentor or co-mentor, get in 
touch with me and Marco Cappellacci. You may also propose a new idea. 
Previous experience with OpenWISP and open source is required. A good 
amount of time to dedicate to this is also required. Mentoring properly 
takes between 5 and 15 hours every week, in the beginning usually the time 
required is higher. Therefore think about applying only if you are 
interested in achieving a goal that you need so much that you are willing 
to invest time and energy into it.

*If you think there's the possibility you may have not time or worse take 
on responsibilities and then disappear, don't even bother please as you'd 
be doing more harm than good.*

If you have never mentored, see also the official Mentor Guide 
<https://developers.google.com/open-source/gsoc/resources/guide#mentor_guide> 
to understand what it means to mentor a student (takeaway: it requires 
serious effort).

Good luck to everybody!
Federico Capoano

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Google Summer Of Code 2018 - Django freeradius project

2018-02-17 Thread Federico Capoano
The idea page was updated today, we also added 
this: http://openwisp.io/docs/developer/google-summer-of-code.html

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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Regarding working on openwisp for GSOC 2018

2018-02-17 Thread Federico Capoano
The idea page was updated today, we also added 
this: http://openwisp.io/docs/developer/google-summer-of-code.html

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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Google Summer Of Code 2018 - Django freeradius project

2018-02-16 Thread Federico Capoano
Welcome Anurag,

I'm the mentor but please understand that there are many other students
like you that want to talk to us, we are busy, we have our own life and our
own work to do. I won't be able to talk to 100 students like you.
Please show what you are able to do by contributing to the community and
ask all the questions on the official support channels (ML and chat).

Thanks
Federico

On Fri, Feb 16, 2018 at 5:56 PM Anurag Sharma  wrote:

> Hi,
> I am a student planning to take part in this year's GSOC. I wanted to know
> who is the assigned mentor for the - "django freeradius integration"
> project. I have been developing Django based web applications for like past
> 4-5 years now and I feel I can complete this project. I wanted to know who
> is mentor so that I could talk more about it.
>
> Thank you,
> Anurag Sharma
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Regarding working on openwisp for GSOC 2018

2018-02-15 Thread Federico Capoano
Hi Shubham and welcome,

this kind of project is hard. If you don't know anything about PfSense I 
don't suggest aiming at this one.
We'll be very selective this year: we'll select only students who clearly 
demonstrate they have the required skills to complete the projects 
successfully.
You may as well try to learn about OpenWISP 2, netjsonconfig and PfSense 
before the application period starts.. but you may have other chances with 
other projects which use technologies you are more familiar with. Your call.

The only good suggestion I can give is to participate actively in the 
community because you surely will learn and won't regret it.

Good luck!
Federico


On Thursday, February 15, 2018 at 9:26:57 AM UTC+1, shubham dubey wrote:
>
> Hi,
> I am Shubham and would like to work on openwisp for GSOC 2018.
> The idea I liked most is "PFsense backend for openwisp 2". 
>
> But one think I want  to point out is that the reason I have
>  selected this project is because I am curious in learning about pfsense 
> and this project I hope will be a good start for that. But that said, I 
> don't have any
> previous experience with this technology. Although I have good experience 
> in python but 
> Is with limited pfsense understanding can I work on this project? (I feel 
> I can also learn this
> in few days before project start). So, whats your thoughts on that.
>
>
> Other suggestion about how to get started with openwisp development is 
> welcome.
> Also, want to know is it necessary to have a home router for testing?
>
>
> Thanks and regards,
> Shubham
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Google Code-In Grand Prize Winners: select 1 mentor to meet

2018-02-15 Thread Federico Capoano
Ops, I meant to write "It seems I'll be going this time" ehehe
Next time I would like someone else to go, if anyone will do a good job in
helping out students ;-)

F.

On Wed, Feb 14, 2018 at 10:56 PM Federico Capoano <
federico.capo...@gmail.com> wrote:

> Thanks to both!
>
> It seems I'll be going next time.
>
> I hope in the next editions we'll have some turnover with new mentors :-)
>
> Federico
>
> On Wed, Feb 14, 2018 at 1:50 PM Aditya  wrote:
>
>> I would like to nominate
>>
>>1. Federico Capoano
>>2. Rohit Asrk
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: Google Code-In Grand Prize Winners: select 1 mentor to meet

2018-02-14 Thread Federico Capoano
Thanks to both!

It seems I'll be going next time.

I hope in the next editions we'll have some turnover with new mentors :-)

Federico

On Wed, Feb 14, 2018 at 1:50 PM Aditya  wrote:

> I would like to nominate
>
>1. Federico Capoano
>2. Rohit Asrk
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Google Code-In Grand Prize Winners: select 1 mentor to meet

2018-02-13 Thread Federico Capoano
Hi everyone,

we recently got the news that this year Google will fund the trip of 1
mentor for each organization to visit Google HQ to meet the winners (I
didn't even know this until 2 weeks ago!).

Google lets organization admins decide who to send. I want to establish a
process which will give a good incentive for future mentors: let the
winners decide who they would like to meet based on the amount of
interaction they had with their favorite mentors.

Now, for this edition, we all know who has been very active, active and not
very active, so the result will be no secret. But hopefully the next
editions will be different!

So, Aditya and Aarnav, please cite the 2 mentors you have interacted most
during the program and you feel you learnt most from.

   - if one name matches, that will be the mentor
   - if no name matches, I will ask you to cite 2 more names
   - if both name matches, we'll handle it in private in a group chat to
   decide who should go with you

I hope there's consensus on establish this process, if anyone has anything
to say in merit, please do!

Best regards
Federico Capoano

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] How get selected as GSoC 2018 student

2018-02-13 Thread Federico Capoano
Here's a few hints: the ideal student is capable, responsible, autonomous,
has a good basic knowledge of how openwisp works, is showing he wants to
help our community succeed and and has some prior experience in
contributing to open source.

This year will be tough: we will go for quality over quantity. That means
only the very best will be selected.

Federico

On Tue, Feb 13, 2018 at 4:20 PM Amit Kumar Singh 
wrote:

> Hello All,
>
> I am very happy as OpenWISP is selected as GSoC 2018 organization.
> Few months back I tried to apply for Google Code-In but I got late and due
> to this I was not selected.
> And this time I have GSoC and I really don't to let this opportunity go.
> It would be great if someone
> could help me to know how to get selected as GSoC 2018 student.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: I want to use openwisp with over 300+ aps for public wifi area

2018-02-09 Thread Federico Capoano
Try upgrading the ansible role (openwisp.openwisp2) to the latest version,
try again and if it fails please copy the bit of text on your terminal
which explains the error and paste it here.

F.

On Thu, Feb 8, 2018 at 5:11 PM Mustafa Nassir 
wrote:

> Its vms with ubuntu 16.04 I get error with playbook file
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Queries

2018-02-09 Thread Federico Capoano
Hi Deepak and welcome,

On Thu, Feb 8, 2018 at 7:24 AM Deepak Sehrawat  wrote:

>
> 1) How mature is OpenWISP w.r.t commercial products such as CISCO WLCs?
>

I don't have experience with Cisco WLCs so I can't write a comparison.

OpenWISP 2 controller is focused on storing and automating the generation
of configurations and scripts for network devices (routers, radio devices,
access points, mesh devices) minimizing repetition of configuration
information and minimizing manual work. OpenWRT/LEDE is the only properly
supported system right now but we have developed two experimental
configuration backends (Ubiquiti AirOS and Raspberry Pi) which helped us to
demonstrate OpenWISP can potentially manage any router OS which gives
enough flexibility to run scripts that install and upgrade the
configuration.

This is pretty much its strong point, there other features that I could
cite but they are really related to this main point.


> 2) Does it support Mobility Groups? Can it be used with CISCO WLC for
> inter-WLC mobility?
>

No.


> 3) Does it support CAPWAP? If not, how difficult is it to integrate it
> with OpenCAPWAP?
>

No it doesn't, the companies who funded the development of OpenWISP didn't
have Capwap in their requirements although it has been thought of in the
beginning.

I guess adding support for Capwap is doable with some development effort
but we'd need a developer who has a decent experience with Capwap and some
experience with Python and OpenWRT/LEDE to estimate it correctly. At the
moment I don't have any experience with Capbwap.

I hope this helps!

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Installation issues

2018-02-05 Thread Federico Capoano
Hi Jerry, sorry for the delayed reply. Try with ansible 2.4 or higher.

Federico 


On Friday, February 2, 2018 at 9:53:45 PM UTC-5, Jerry Burris wrote:
>
> Hi Federico,
>
> I am using version 2.3.1.0
>
> On Friday, February 2, 2018 at 6:24:08 PM UTC-5, Federico Capoano wrote:
>>
>> What ansible version are you using?
>>
>> F.
>>
>>
>> On Friday, February 2, 2018 at 8:54:58 AM UTC-5, Jerry Burris wrote:
>>>
>>> Hello all!
>>>
>>> Please excuse me if this has already been addressed or if I have done 
>>> something wrong.  I am following the instructions exactly as they are laid 
>>> out and I get the following error:
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Error! no action detected in task. This often indicates a misspelled 
>>> module name, or incorrect module path.The error appears to have been in 
>>> '/etc/ansible/roles/Stouts.postfix/tasks/main.yml': line 3, column 3, but 
>>> maybe elsewhere in the file depending on the exact syntax problem.The 
>>> offending line appears to be:- include_tasks: postfix.yml  ^ hereThe error 
>>> appears to have been in '/etc/ansible/roles/Stouts.postfix/tasks/main.yml': 
>>> line 3, column 3, but maybe elsewhere in the file depending on the exact 
>>> syntax problem.The offending line appears to be:- include_tasks: 
>>> postfix.yml  ^ here*I am new to ansible and I am a wireless network 
>>> engineer and not really a programmer so please excuse me if I have 
>>> overlooked something. Any help is greatly appreciated!
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Introduction for joining Openwisp

2018-02-02 Thread Federico Capoano
Start from here: http://openwisp.io/docs/developer/contributing.html

F.

On Friday, February 2, 2018 at 12:48:29 AM UTC-5, RASHMIT PANKHANIA wrote:
>
> Hello,
> My name is Rashmit Pankhania and right now  I am pursuing my graduation in 
> second year in Electrical engineering National Institute of Technology, 
> Surat in India.
>
> I have quite lately been interested in contributing towards the open 
> source organisation and I find your organisation the most appropriate 
> one.I'm familiar with c, python 3.5 and Django. I have done some basic web 
> development using html and css along with python as back-end.
> I have seen your last project "django-freeradius" about making a good 
> custom admin page in djAngo and I found a lot of interest in it.
> I request you to please guide me through which projects I can contribute, 
> how to install your codebase and how to get started to your organisation.
>
> Thanking You for you anticipation.
> Rashmit Pankhania
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: Installation issues

2018-02-02 Thread Federico Capoano
What ansible version are you using?

F.


On Friday, February 2, 2018 at 8:54:58 AM UTC-5, Jerry Burris wrote:
>
> Hello all!
>
> Please excuse me if this has already been addressed or if I have done 
> something wrong.  I am following the instructions exactly as they are laid 
> out and I get the following error:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Error! no action detected in task. This often indicates a misspelled 
> module name, or incorrect module path.The error appears to have been in 
> '/etc/ansible/roles/Stouts.postfix/tasks/main.yml': line 3, column 3, but 
> maybe elsewhere in the file depending on the exact syntax problem.The 
> offending line appears to be:- include_tasks: postfix.yml  ^ hereThe error 
> appears to have been in '/etc/ansible/roles/Stouts.postfix/tasks/main.yml': 
> line 3, column 3, but maybe elsewhere in the file depending on the exact 
> syntax problem.The offending line appears to be:- include_tasks: 
> postfix.yml  ^ here*I am new to ansible and I am a wireless network 
> engineer and not really a programmer so please excuse me if I have 
> overlooked something. Any help is greatly appreciated!
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Using Apache instead of Nginx

2018-01-28 Thread Federico Capoano
No, any web server is fine. The current default choice is aligned with the
current industry standards of high tech companies.

Federico

On Sat, Jan 27, 2018 at 11:59 PM Saurabh Chakrabarti <
saurabhchakraba...@gmail.com> wrote:

> Hi,
>
> Is there a specific reason why we ngnix and not apache to host openwisp?
>
> Regards,
> Saurabh
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: I want to use openwisp with over 300+ aps for public wifi area

2018-01-27 Thread Federico Capoano
Never installed it on google cloud. Could you give us more information 
about this setup, are these VMs or containers?

Federico


On Thursday, January 25, 2018 at 5:53:44 PM UTC-5, Mustafa Nassir wrote:
>
> Thx for your reply I have radius install and done in google cloud its work 
> with freeradius but I have big problem with openwisp when I start install 
> it in google cloud I get error with playbook.yml run and its didnt work, I 
> add my instance ip in hosts file and error say the problem with ip is there 
> any idea to install it in gcp thx 

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Problem while running openWISP with VM

2018-01-16 Thread Federico Capoano
Authentication failed: the SSH credentials are wrong.

On Tue, Jan 16, 2018 at 7:09 PM Aviral Gupta  wrote:

> These are my files. I am unable to run the playbook. Please help. I am
> doing this with Mac OSX High Sierra and a Ubuntu 17.10 VM.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: ONE ONLY SSID IN OPENWISP

2018-01-16 Thread Federico Capoano
I don't understand if you are talking about a captive portal, 802.1x, I
suggest you to come in our chat and explain it there:
https://gitter.im/openwisp/general

Fed

On Tue, Jan 16, 2018 at 12:03 AM Christian Baidal 
wrote:

>
> Hello Federico, If thanks I have that clear, my question was if openwisp2
> has any option to define a unique authentication system for the 3 router
> and so if I move to another place I connect to the router that has more
> signal without becoming authenticated. I do not know if you understand me
> more or less as a WCL.
>
> Thanks for your help.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: ONE ONLY SSID IN OPENWISP

2018-01-15 Thread Federico Capoano
Not sure I understand what you mean, usually every device inherits a 
configuration template which has the SSID name defined only once for all 
the devices which use that template, so every device using that template 
will broadcast the same SSID name.

Does this help?

Federico


On Sunday, January 14, 2018 at 8:14:46 PM UTC+1, Christian Baidal wrote:
>
>
> Hi Federico, At last I was able to install openwisp as a controller and I 
> was able to register my access point to the controller, what I have now is 
> the following scenario: I have 3 access points connected to my controller, 
> the question is as follows. Can Openwisp put a single SSID for my three 
> access points? that is, I only see a general SSID for my three access 
> points. Thanks for your time.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: I want to use openwisp with over 300+ aps for public wifi area

2018-01-13 Thread Federico Capoano
Welcome Mustafa,

look at these other discussions.

   - https://groups.google.com/d/msg/openwisp/vg3F1dbWbgc/TMJpyWknCAAJ
   - https://groups.google.com/d/msg/openwisp/yCEoYyYrpIU/ALQQc09KEAAJ
   - https://groups.google.com/d/msg/openwisp/SgsFgYGa9_0/lGlNT7yJAwAJ

If you have more specific questions please don't hesitate to ask.

Federico


On Friday, January 12, 2018 at 11:40:10 PM UTC+1, Mustafa Nassir wrote:
>
> Hi there my name mustafa from iraq we in msp company have 240 ap unifi ac 
> mesh work with 2500 user online we tested lede software for long time and 
> we see it very good and very powerful so we want to upgrade all 240 to lede 
> we need to use openwisp to make it 
>
> What we need to do 
> 1.control all ouer lede from one place and its very nice if its clousd 
> like aws posible 
> 2. Captive portal for ouer user 
> 3. Same captive portal and vouchers system for all aps 
>
> Is it posible to do it , its very important to ouer company to do it 
> Thx very much for your time 
>
> Mustafa Nassir 
> Micro service provider (MSP) 
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[openwisp] Re: The RESTful API tutorial - GCI 2k17

2018-01-13 Thread Federico Capoano
Ask this type of questions on chat, we use this for discussions that are 
more related to OpenWISP.

Federico


On Saturday, January 13, 2018 at 8:33:44 AM UTC+1, Anirudh Prabhakaran 
wrote:
>
> https://tests4geeks.com/django-rest-framework-tutorial/
>
> I'm following this tutorial for GCI. I've reached the part till modifying 
> the 
> Listing of project/apps/core/urls.py
>
> After this, when I try to run my server, I get an error:
>
> from django.urls  import NoReverseMatch
> ModuleNotFoundError : No module named 'django.urls'
>
> What should I do??
>
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [openwisp] Re: OPENWISP

2018-01-10 Thread Federico Capoano
Christian, try to come in our chat when you have time, someone may be able
to help you out (hopefully):
https://gitter.im/openwisp/general

On Wed, Jan 10, 2018 at 6:42 PM Christian Baidal 
wrote:

> Thanks William.
>
>
> What step you went to fix the problem friend. You can help me with
> screenshots of your 'hosts' and 'playbook.yml' file and the settings you
> made. thanks for your help.
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


<    3   4   5   6   7   8   9   10   11   12   >