Git Product home page Git Product logo

fdi's Introduction

fdi

Openwrt-based router auth system

Installation (on deb-based example)

  • Get a nim compiler: apt install nim build-essential
  • Install needed dependencies: nimble install jester template
  • Install LEDE/openwrt toolchain and build it for your router. Your target is make toolchain/gcc. See openwrt instructions.
  • Clone this repository: git clone https://github.com/derlaft/fdi.git
  • Edit build.sh, change openwrt toolchain path and architecture if needed.
  • Run build: bash ./build.sh
  • If everything is OK, you will get an executable named main. Place it, gateway.cfg and public/ directory to the router.
  • On the router, you will need to install some packages: opkg install libpthread librt libopenssl libpcre
  • Make sure you have enough RAM and disk space. I recommend at least 8Mb disk space. Install zram-swap package if you are low on mem.
  • Place fdi.init to /etc/init.d/fdi to load service with start-up. /etcinit.d/fdi enable will load the service automatically.
  • Configure /etc/config/firewall. See firewall.conf as example.

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.