GithubHelp home page GithubHelp logo

sir-go / rkn-rejects Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 78 KB

extremely strict parental control for RKN device

Dockerfile 0.48% Go 99.27% Shell 0.26%
dns dpi nfqueue nftables sniffing go docker

rkn-rejects's Introduction

DNS/DPI sniffers and NFT-tables rules

Go Test cmd/checks Go Test cmd/dns Go Test cmd/dpi Go Test cmd/get-rkn

The parental control project contains four utilities to get white and black lists from RKN service and completely isolate one certain host from denied resources. Utilities installed at the router between the host and uplink.

Utilities

  • get_rkn

    SOAP-client for RKN service, gets b/w lists, parses them and fills the redis cache.

  • dns-sniffer

    watches all DNS traffic, collects A-records, and checks resolved hosts by b/w lists.

    If the record in the answer is not denied then it puts to the white IP list with resolved TTL.

  • dpi-sniffer

    sniffs all traffic and for denied IP or hostname detection.

  • check

    the testing tool for regularly checking the quality of other parts working. It gets the accessibility of hosts by their list in Redis, runs goroutines with HTTP-clients, and collects status codes.

    It can be run from the docker container for routing all traffic through the router's firewall.

NF-tables

Traffic to sniffers redirects by the nf_queue kernel module. All traffic rejects by default except DNS requests and answers. NF-tables rules have a list of allowed IP addresses. Every record in the list has a TTL and deletes when this time is expired. Also, there are the lists filled manually and imported to the rules.

Utilities control the firewall with internal library internal/fw.

Predefined useful nftables configs located in configs/nftables

rkn-rejects's People

Contributors

sir-go avatar

Watchers

 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.