Git Product home page Git Product logo

wifi's Introduction

WIFIS

A hotspot system written in PHP for Mikrotik / RouterOS devices with subscription options and Paypal integration.

The system was made in 2019 as an experiment for a local WISP network. It is very lightweight and can be installed on a Raspberry PI. The system does not have any administration build in (for now), so you have to manage it via RouterOS and SQL. It works on desktop and mobile and is multi-lingual (English, Italian, Slovenian and Croatian).

Requirements

  • RouterOS (Mikrotik) with Hotspot package
  • PHP
  • pear2/Net_RouterOS
  • MySQL
  • Redis
  • Composer

Installation

 git clone https://github.com/andrejtrcek/wifis.git
 cd wifis
 composer install
 mysql -u username -p database_name < wifis.sql
 nano dao/config.php

RouterOS / Mikrotik configuration

Hotspot package

Install Hotspot package from https://mikrotik.com/download

Replace Hotspot files

Upload and replace auto generated files in the hotspot/ folder on RouterOS.

Configuration

/interface bridge add name=Hotspot
/ip hotspot profile add dns-name=wifis.info hotspot-address=10.10.2.1 login-by=mac,http-chap,https,http-pap,mac-cookie name=wifis
/ip pool add name=wifis ranges=10.10.2.1-10.10.2.255
/ip dhcp-server add address-pool=wifis disabled=no interface=Hotspot lease-time=1h name=wifis
/ip hotspot add address-pool=wifis addresses-per-mac=3 disabled=no interface=Hotspot name=wifis profile=wifis
/ip hotspot user profile
add address-pool=wifis !idle-timeout !keepalive-timeout mac-cookie-timeout=1d name=InternetDay rate-limit=2048k/2048k shared-users=unlimited transparent-proxy=yes
add address-pool=wifis !idle-timeout !keepalive-timeout mac-cookie-timeout=1d name=InternetWeekend rate-limit=2048k/2048k shared-users=unlimited transparent-proxy=yes
add address-pool=wifis !idle-timeout !keepalive-timeout mac-cookie-timeout=1d name=internetWeek rate-limit=2048k/2048k shared-users=unlimited transparent-proxy=yes
/ip address add address=10.10.2.1/24 comment="WIFIS Network" interface=Hotspot network=10.10.2.1
/ip dhcp-server network add address=10.10.2.0/24 comment="WIFIS Network" gateway=10.10.2.1
/ip dns static add address=10.10.2.1 name=wifis.info type=A
/ip dns set allow-remote-requests=yes servers=1.1.1.1
/ip hotspot walled-garden
add dst-host=wifis.info
add dst-host=*.paypal.com
add dst-host=*.paypalobjects.com
add dst-host=*.paypal-metrics.com
add dst-host=*.akamaiedge.net
add dst-host=paypal.112.2O7.net

wifi's People

Contributors

andrejtrcek avatar lupael avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.