[openwisp] missing required --url option

2017-03-23 Thread henriqsc
Hello I've just installed th e client openwisp-config for openwisp2 on a virtual machine with openwrt for test. I followed the instructions to install the nossl version of the client, everything went ok until I tried to start the client using "openwisp_config start" which returns me the

Re: [openwisp] missing required --url option

2017-03-27 Thread henriqsc
ommand line. > > You have to use the init.d script: > /etc/init.d/openwisp_config start > > As documented in the openwisp-config README > <https://github.com/openwisp/openwisp-config/#install-precompiled-package> > . > > Anyway, glad you found out the issue.

Re: [openwisp] Re: setup guide

2017-03-30 Thread henriqsc
Had this same Bad Request (400) issue, it was also making it impossible to clients to register on the server. Solved that by modifing /opt/openwisp2/openwisp2/settings.py adding the domain part of the URL (in our case the IP address of the server) to the line: ALLOWED_HOSTS = ['IP_Address',

Re: [openwisp] missing required --url option

2017-03-27 Thread henriqsc
; I've installed the nossl package, pasted the config you provided and the > deamon started successfully. > > I cannot reproduce your problem. > > Federico > > > On Friday, March 24, 2017 at 4:41:40 PM UTC+1, henriqsc wrote: >> >> Hello Fred >> >> >>

Re: [openwisp] missing required --url option

2017-03-24 Thread henriqsc
plicate your issue. > > You installed a precompiled package? > > Which one? Could you send me the full URL? > > What's the contents of /etc/config/openwrt? > > Federico > > > Il ven 24 mar 2017, 12:35 henriqsc <henrique...@gmail.com > > ha scritto: > >&

[openwisp] Firmware Setting Configuration at boot time

2017-04-03 Thread henriqsc
Hello We are trying to set up our routers to get the configuration from the controller at boot time but we realised that it was not happening probably because the wan interface was not ready to communicate to the controller before the firmware itself starts. We tried to solve that by setting

[openwisp] Configuring pppoe

2017-04-06 Thread henriqsc
Hello We're trying to set some devices to use pppoe but there is no such option on the web interface, we also tryed to use the advanced JASON mode but it's not allowed to set the protocol field as pppoe. Is there any way to configure pppoe? Thank you! -- You received this message because

Re: [openwisp] Configuring pppoe

2017-04-06 Thread henriqsc
' option ipaddr '127.0.0.1' option netmask '255.0.0.0' Em quinta-feira, 6 de abril de 2017 11:03:57 UTC-3, Federico Capoano escreveu: > > Hi Henrique, > > could you send a full example of UCI config interface you need to set? > > Federico > > > On Thu, Apr

Re: [openwisp] Empty file when using file template

2017-04-20 Thread henriqsc
Hi Federico, yep, thanks. Since openwisp_config run as root and "etc" is owned by root as well as "tmp" what is the problem with writing to "etc" (in fact it's already creating the empty file)? The only difference I see between etc and tmp is that the later has writing permissions to non-root

[openwisp] Re: Empty file when using file template

2017-04-20 Thread henriqsc
Ok, thanks again. I hope I can contribute in some way soon. -- 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

[openwisp] Empty file when using file template

2017-04-18 Thread henriqsc
Not sure why this is happening but when I try to include a file template to my configuration I get the file but with no content on the other end. Template's JASON is as follows: { "files": [ { "contents": "teste", "path": "/etc/config/teste",

Re: [openwisp] Configuring pppoe

2017-04-07 Thread henriqsc
day, April 7, 2017 at 10:35:36 AM UTC+2, Federico Capoano wrote: >> >> On Thursday, April 6, 2017 at 7:07:43 PM UTC+2, henriqsc wrote: >>> >>> Great. Many thanks. >>> >>> It applied the configuration without actualy testing it I guess because >>&

Re: [openwisp] Block menagement page to external networks

2017-08-14 Thread henriqsc
Thanks Federico, still learning how to use git, should have called you via chat. Em segunda-feira, 7 de agosto de 2017 14:21:02 UTC-3, Federico Capoano escreveu: > > Done: > https://github.com/openwisp/ansible-openwisp2/commit/4272db8bbe428737fdc0bb04435acf67cac0d3e7 > -- You received this

Re: [openwisp] Block menagement page to external networks

2017-07-17 Thread henriqsc
Hi all, I actually needed to test openwrt clients. Tested it today and they can register and get configurations even if they were outside openwisp2_admin_allowed_network. Right now I'm using the following. location /admin { error_page 403 = 204; try_files

Re: [openwisp] Block menagement page to external networks

2017-07-20 Thread henriqsc
t; > It would be an awesome contribution for being the first one! > > Federico > > > On Mon, Jul 17, 2017 at 9:21 PM henriqsc <henrique...@gmail.com > > wrote: > >> Hi all, I actually needed to test openwrt clients. Tested it today and >&g

Re: [openwisp] Block menagement page to external networks

2017-06-29 Thread henriqsc
I want to block console access only from the wan. All clients in the wan side must reach the controller. I thought it would be possible because the console is accessed via GET /admin/ and the clients accesss their configurations using GET /controller/something I'm not sure iptables will do

[openwisp] Block menagement page to external networks

2017-06-29 Thread henriqsc
Has anyone successfully applied access restriction to the management part of the controller (*/admin) via nginx openwisp sites-enabled file? I've been trying to block the magement page to non-private IPs but without much of a success. I tryed the standard location /admin {deny all; allow

[openwisp] Changes in /etc/config/firewall

2017-04-26 Thread henriqsc
Hello everyone, I noticed that after openwisp_config service is run for the first time the /etc/config/firewal is changed, all the rules and zones descriptions are chaged, for example: config rule option dst_port 'xxx' option taget 'yyy' is changed to: config rule 'cfg0c932bd'

[openwisp] Re: Changes in /etc/config/firewall

2017-04-26 Thread henriqsc
config/0.3.7/netjsonconfig.pdf http://nemesisdesign.net/blog/coding/netjsonconfig-convert-netjson-to-openwrt-uci/ > > On Wednesday, April 26, 2017 at 5:20:50 PM UTC+2, henriqsc wrote: >> >> Hello everyone, >> >> I noticed that after openwisp_config service is run for

Re: [openwisp] Openwrt Backend

2017-08-28 Thread henriqsc
Hi Federico { "ip_rules": [ { "src":"wan", "enabled":"1", "proto":"tcp", "dest_port":"22", "target": "ACCEPT" } ] } I think it's happening because I'm using an older version of netjsonconfig where there is still a file called renderers.py which calls ip_network for that property (src)

Re: [openwisp] Openwrt Backend

2017-08-28 Thread henriqsc
Ok: https://github.com/openwisp/netjsonconfig/issues/96 But I'm not sure it's happening in newer versions since renderes.py is no more a file, it's now renamed to renderer.py which is a much smaller file. -- You received this message because you are subscribed to the Google Groups "OpenWISP"

Re: [openwisp] Openwrt Backend

2017-08-29 Thread henriqsc
{ "firewall": [ { "config_name": "rule", "config_value": "SSH_WAN", "proto": "tcp", "dest_port": "22", "target": "ACCEPT", "src": "wan" } ] } -- You received this message because you are subscribed to

Re: [openwisp] Openwrt Backend

2017-08-29 Thread henriqsc
Right, the following json did it for me. { "firewall": [ { "config_name": "rule", "config_value": "SSH_WAN", "proto": "tcp", "dest_port": "22", "target": "ACCEPT", "src": "wan" } ] } -- You received

Re: [openwisp] Running commands directly on the device

2017-10-11 Thread henriqsc
Thats interesting. I've been using /etc/uci-defaults, openwrt will run every script it finds inside this folder at boot time. The problem is it needs someone to reboot the router. Em terça-feira, 10 de outubro de 2017 14:36:31 UTC-3, Federico Capoano escreveu: > > HI Saurabh, > > very

Re: [openwisp] Running commands directly on the device

2017-10-11 Thread henriqsc
Thats interesting. I've been using /etc/uci-defaults, openwrt will run every script it finds inside this folder at boot time. The problem is it needs someone to reboot the router. -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe

[openwisp] Old database in new version

2017-10-19 Thread henriqsc
Is there a straightforward way to install a database from an older openwisp version or should I figure out how to convert it to the new schema? -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving

Re: [openwisp] Old database in new version

2017-10-19 Thread henriqsc
Hi Federico, openwisp2. I removed the question cause I would study ansible tasks to see if there is something that does that when it finds an existing database. Anyway the question is that I have an older version from around march running in production but I want to install a new one for

Re: [openwisp] Old database in new version

2017-10-19 Thread henriqsc
Alright I will try something but I'm actually creating a new server and trying to transfer the existing database (sqlite) to this new server. Just copying the existing database to the new server works fine for authentication and templates, but not for the Devices (aka Configurations) section.

[openwisp] Old database in new versions

2017-10-19 Thread henriqsc
Is there a straightforward way to install a database from an older openwisp versions or should I figure out how to convert it to the new schema? -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving

Re: [openwisp] Build 4MB image with integrated openwisp-config

2018-01-10 Thread henriqsc
Traduzir mensagem para português Well we built a 16MB image so there was plenty of space to install anything. Only thing I can say is that a customized firmware with the shared_key embedded for automatic registration works like a charm, even if devices are reset they will retrieve the

[openwisp] Re: Build 4MB image with integrated openwisp-config

2018-01-10 Thread henriqsc
Well we built a 16MB image so pretty much space to install anything. Only thing I can say is that a customized firmware with the shared_key embedded for automatic registration works like a charm, even if devices are reset they will retrieve the configuration from openwisp2 afterwards. -- You

[openwisp] Re: Queries

2018-02-08 Thread henriqsc
I'm only an user f openwisp but I'll try to answer some of you questions: 1. Openwisp is pretty mature in what is supposed to do: deliver uci configuration to openwrt devices. Because openwisp has this very specific goal it's hard to compare it to commercial wifi solutions like Cisco's. Those

[openwisp] Re: Queries

2018-02-08 Thread henriqsc
I'm only an user of openwisp but I'll try to answer some of your questions: 1. Openwisp is pretty mature in what is supposed to do: deliver uci configuration to openwrt devices. Because openwisp has this very specific goal it's hard to compare it to commercial wifi solutions like Cisco's.

[openwisp] Openwrt\LEDE merge

2018-01-04 Thread henriqsc
Good news: https://lede-project.org/#announcing_the_openwrtlede_merge -- 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

[openwisp] Re: Drop support for Python 2.7, 3.3 and 3.4

2018-09-05 Thread henriqsc
Hi Federico when will it happen? I'm still using one of the first Openwisp2 versions and Python 2.7.9 and I'm planning an upgrade. -- 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,

Re: [openwisp] Re: Drop support for Python 2.7, 3.3 and 3.4

2018-09-05 Thread henriqsc
gt; > If you make a backup and upgrade now, then you can create a new VM with a > more recent OS (eg: ubuntu 18) and migrate the database. > This way you won't be affected when we drop support for python 2.7. > > Federico > > On Wed, Sep 5, 2018 at 7:38 PM henriqsc >

[openwisp] Upgrading openwisp2

2018-09-10 Thread henriqsc
Hi any particular reason to run upgrades from the local machine as it's suggested in the manual? https://libraries.io/github/wanman/ansible-openwisp2 -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop

[openwisp] Re: Small actions that will help OpenWISP

2018-04-17 Thread henriqsc
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

[openwisp] Incomplete file

2018-11-16 Thread henriqsc
Hi, I'm trying to transfer a shell script to my devices but the file generated by openwisp is incomplete. It's the first time it happens to me. The json in the advanced mode is ok and the output from the command line ( netjsonconfig --config file.json --backend openwrt --method render) returns

Re: [openwisp] Re: Incomplete file

2018-12-21 Thread henriqsc
ok! -- 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] Netjsonconfig to uci help

2018-12-21 Thread henriqsc
Need to generate some configuration but I'm finding some issues. I need tot bridge both eth0 and eth1 in a lan. As well as disable the existing wan (eth1). Openwisp/netjsonconfig does not accept the following line: "name": "eth0 eth1", like in: { "interfaces": [ {

Re: [openwisp] Netjsonconfig to uci help

2018-12-21 Thread henriqsc
Great, that worked for me. I've been using openwisp for so long that sometimes I forget there is a basic mode that i can use to generate the json. Thanks! -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop

Re: [openwisp] Re: Incomplete file

2018-11-23 Thread henriqsc
Ok. This json generates a file without the last two characters. This problem happens only using the web interface not the netjsonconfig command line. { "files": [ { "contents": "#!/bin/sh\n\npostar_arquivo_no_servidor(){\n\tTIPO=$1\n\tARQUIVO=$2\n\tlogger \"Script

[openwisp] Re: Incomplete file

2018-11-22 Thread henriqsc
Hi Federico. yes, it shows up in the preview. I couldn't find why the problem is happening but I managed to figure out a workaround. Since only the final characters are removed I added the same amount of characters (white spaces) at the end of the file. Let me know if you really want to go

Re: [openwisp] New website online!

2018-09-13 Thread henriqsc
Great work, congrats. -- 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

Re: [openwisp] Problem during auto-registration

2019-08-12 Thread henriqsc
Have you checked under ORGANIZATIONS > YOUR ORGANIZATION > CONFIGURATION MANAGEMENT SETTINGS > Auto-registration enabled? Em segunda-feira, 12 de agosto de 2019 10:51:25 UTC-3, matteo fedeli escreveu: > > In the device section there isn't anyone AP... It's empty. > > Il giorno lunedì 12 agosto

Re: [openwisp] Problem during auto-registration

2019-08-12 Thread henriqsc
Have you checked under ORGANIZATIONS > YOUR ORGANIZATION > CONFIGURATION MANAGEMENT SETTINGS > Auto-registration enabled? Em segunda-feira, 12 de agosto de 2019 10:51:25 UTC-3, matteo fedeli escreveu: > > In the device section there isn't anyone AP... It's empty. > > Il giorno lunedì 12 agosto

[openwisp] Re: Problem during auto-registration

2019-08-07 Thread henriqsc
Hello Is that a previously registered device? I had some issues with that and the soulution we came up was to delete the device from Openwisp and register it again. -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group

[openwisp] Re: Adding temlate to device

2019-08-06 Thread henriqsc
I think there is not an option for that, can't you just set "option interval" in /etc/config/oepnwisp to something that will suit you? Alternativelly you can automate that with ansible since you can access the devices via SSH. Ps.: In case you automate you just need to reload the service

Re: [openwisp] Q: Hardware for large OpenWisp network

2019-08-06 Thread henriqsc
I've been running around 600 TP-Link devices for the last two years, so far they've been astonishingly reliable. -- 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] Openwisp_config not applying configuration after flashing

2019-11-01 Thread henriqsc
Hello I'm building a firmware with openwisp pre-installed but whenI flash the firmware openwisp acts a bit weird right after the image is flashed. It retieves the configuration from server a applies it but does not restart the services so that the configuration is not really applied. It takes

[openwisp] Re: Openwisp_config not applying configuration after flashing

2019-11-01 Thread henriqsc
The same happens after factory reset. -- 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. To view this discussion on the web,