Skip to content

cobot/cobot_captive_portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cobot Captive Portal

Discontinued

We have stopped working on Pfsense and won't be working on it anymore. We now recommend Cobot customers to get a Netbox.

This is a system patch for the Pfsense router software that adds support for Cobot to the captive portal feature of Pfsense.

With this patch installed the captive portal will authenticate directly against the Cobot API, allowing users to log in using their Cobot account credentials.

Note that this disables support for Radius/local captive portal authentication.

Currently this package supports version 2.0.1, 2.0.3, 2.1.0 and 2.1.3 of Pfsense.

Installation

Install the System Patches package

Install the "System Patches" package on pfsense on your router:

On the Pfsense web interface go to System => Packages...

Select Packages

..and go to Available Packages.

Select Packages

Scroll down to System Patches and click the Add button on the right.

Install system pactches packet

Apply the patch

Go to the System => Patches page...

Select Patches

... and click on the Add Patch button.

Add Patch

Enter "Cobot" in the description field and:

Click the Save button.

Edit Patch

Click Fetch and then Apply on the patch.

Aply Patch

Enable the captive portal

Go to the Services, Captive Portal.

Select captive portal

Only on Pfsense 2.1.0 and later: create a captive portal zone with any name (for example 'cobot').

Create zone

Check Enable captive portal, select the interface you want to protect (in most cases LAN), enter the subdomain (http://subdomain.cobot.me) of your space under Space subdomain and your access token (you can get this token on Cobot under Setup => Wifi integration).

Important: If you are planning to use day-long passes set the soft timeout to 8 hours and the hard timeout to 24h. If you are planning to use time pass shorter than 1 day set both timeouts to the duration of the time pass, e.g. if you offer 4h passes set the hard timeout to 4 hours.

Activate captive portal

Press "Save" and you are done.

Whitelisting Cobot

In order to allow your members to access Cobot without logging in to the captive portal (for example for buying time passes after they have run out) you have to whitelist Cobot.

Go to the captive portal page and click on the Allowed Hostnames tab.

Allowed Hostnames

Create a new entry where you select To from the Direction drop-down and enter <your-subdomain>.cobot.me for the Hostname.

Edit Allowed Hostnames