setup guide

810 views
Skip to first unread message

BIYOHNE Fabrice

unread,
Sep 4, 2016, 8:14:40 PM9/4/16
to OpenWISP
hello, someone have setup guide for ubuntu or centos please?

regards

Federico Capoano

unread,
Sep 5, 2016, 5:25:00 AM9/5/16
to OpenWISP
Hi,

which modules are you interested in?

Federico

elf...@gmail.com

unread,
Jan 21, 2017, 1:38:12 PM1/21/17
to OpenWISP
HI Federico,

how are you? let me wish you a good new year. i wish you success in all your business.

i would like to install openwisp for cloud managed wifi hostpot with billing.

can you help me to do that?

regards

Federico Capoano

unread,
Jan 22, 2017, 10:26:58 AM1/22/17
to OpenWISP
Hi el,

have you read about the available modules here? http://openwisp.org/whatis.html

I suggest you to try:

OpenWISP2 controller to manage your routers and access points, you can find an automatic install procedure here: ansible-openwisp2.

OpenWISP User Management system for to provide a way for your users to register and a RADIUS system for your captive portal.
It doesn't really have a billing feature, you can enable credit card registration and users will be able to pay once to register.
Unfortunately, the documentation provided in the README on github is all the documentation you can get.
Setting up this module is a pain, especially if you want to enable the credit card feature, therefore you may want to find/try
other equivalent RADIUS compatible open source software projects.

Pfsense for your captive portal.

To reply to the initial question posed in this thread by BIYOHNE Fabrice:
I don't know if we'll ever be able to write a complete step by step guide for all these modules and they way they interact with one another.
The way you setup, deploy and configure all this software really depends on your requirements and what you want to achieve.
The amount of work required to do this setup it's a matter of days and writing proper documentation for such work probably requires weeks and at the moment nobody can afford to do this.

Maybe if we had more contributors and more people who wrote documentation we would be able to provide a set of guides that show how to setup the most common scenarios, but at the moment we have no such contributions unfortunately.

Federico

Alessandro Masotti

unread,
Jan 24, 2017, 2:16:20 AM1/24/17
to OpenWISP
Hi, I'm interested in the captive portal function, you can tell me how to link openwisp2 to pfsense?
I had looked long ago pfsense but openwisp has better management of multiple AP

Ciao, sono interessato alla funzione di captive portal, sai dirmi come collegare a grandi linee pfsense con openwisp2?
Avevo guardato tempo fa pfsense ma openwisp ha una migliore gestione di più AP

Federico Capoano

unread,
Jan 24, 2017, 4:58:45 AM1/24/17
to Alessandro Masotti, OpenWISP
First thing you have to do, is to to configure the layer2 VPN (OpenVPN tap or bridge mode) on PfSense so that users are blocked by the captive portal.
Then you have to configure a way for your users to authenticate, maybe to begin you could just use a simple authentication that requires "accepting terms and conditions". I'm over simplifying here, I don't remember by memory all the exact steps to implement this. I'm sure there are guides that will help you to do this on PfSense.

Once you are done with PfSesnse and you are sure it works, go on your OpenWISP2 instance and proceed this way:

- create a new VPN Server, mirror the same configuration you put on PfSense, import the Certification Authority and Server certificate from PfSense (copy and paste the x509 data into the appropiate fields).
- create a new template of type "VPN-client", select the new VPN, leave the configuration empty and save (it will automatically generate a generic client configuration for you), then set this template as "default" so it will be enabled by default on all newly registered devices
- try registering a new device, see if it works, if it doesn't you should check the vpn log for errors; you can also post the problem here and I'll try to help you out.

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

BIYOHNE Fabrice

unread,
Jan 24, 2017, 8:21:23 AM1/24/17
to OpenWISP
Hi Federico, i tryed to install on ubuntu 16.01 server.

and i got this reply when i am trying to access the web interface : Bad Request (400)

any idea?

Federico Capoano

unread,
Jan 24, 2017, 8:39:38 AM1/24/17
to OpenWISP
That's strange.

What module did you try to install?
Which path are you trying to access?

BIYOHNE Fabrice

unread,
Jan 24, 2017, 8:47:02 AM1/24/17
to OpenWISP
i am trying to install openwisp2 following this : https://github.com/openwisp/ansible-openwisp2

can nginx run on the same server with apache2?

regards

Federico Capoano

unread,
Jan 24, 2017, 10:14:14 AM1/24/17
to OpenWISP
No, because both will compete for the same ports.

If you want to use the automated install procedure you should run it on a fresh virtual machine or linux container.

I added a note to the README:

I hope it's clear.

Federico

henriqsc

unread,
Mar 30, 2017, 7:49:42 AM3/30/17
to OpenWISP
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', 'localhost',]  

After rebooting we were able to register clients and access the web console from outside the virtual machile we were using.

This might happen more often after local deployments of the server (ansible deploying the server on localhost).

Federico Capoano

unread,
Mar 30, 2017, 8:11:29 AM3/30/17
to open...@googlegroups.com, henrique...@gmail.com
Please never edit the settings.py manually otherwise you will lose your changes at the next upgrade.

Use the relevant openwisp2_allowed_hosts setting in ansible-openwisp2, look for the example here:


Eg:

- hosts: yourhost
  roles:
  # you can add other roles here
    - openwisp.openwisp2
  vars:
    # additional allowed hosts
    openwisp2_allowed_hosts:
        - <IP_Address>
And run ansible-playbook again.

F.

--

higo jefferson

unread,
Mar 30, 2017, 1:53:04 PM3/30/17
to OpenWISP
hi friends, I created a firmware following instructions https://github.com/openwisp/OpenWISP-Firmware/tree/1.4  to tplink  TL-WR941ND.
I can't access web page to configure ip address, have more things to do to work ?

Federico Capoano

unread,
Mar 30, 2017, 1:56:13 PM3/30/17
to OpenWISP, hig...@gmail.com
Hi Higo, are you using openwisp1 or openwisp2?

That repo is of the old firmware of openwisp1.

F.

--

higo jefferson

unread,
Mar 30, 2017, 2:42:38 PM3/30/17
to OpenWISP
Hi federico, i'm using openwisp2.

Federico Capoano

unread,
Mar 30, 2017, 3:38:51 PM3/30/17
to OpenWISP, hig...@gmail.com
You need to follow instructions here:

Once compiled, it works like the default openwrt/lede firmware.
Reply all
Reply to author
Forward
0 new messages