GithubHelp home page GithubHelp logo

tinysnitch's Introduction

tinysnitch

A demonstration of Little Snitch-like tool for Linux.

assumptions

  • ufw is installed and enabled.
  • ufw logging is configured to full.
  • ufw logs can be retrieved by journalctl.

how to run

$ sudo journalctl -b -f --since now --utc -o json | grep "\[UFW" | grep "PROTO=TCP" | node tinysnitch.js

log example

{"_TRANSPORT":"kernel","SYSLOG_FACILITY":"0","__CURSOR":"s=a54dfccdc714454eb27cfa004b157e66;i=1a8baa;b=2f1b03c3e2104787adb361b0dfd671fc;m=4fb2319c;t=58e26cc6725ab;x=4688a3e2f1367d93","PRIORITY":"4","_HOSTNAME":"umetarou","__MONOTONIC_TIMESTAMP":"1337078172","__REALTIME_TIMESTAMP":"1563672172766635","_MACHINE_ID":"87b5dc6a38314e60a8cbb00af491f4fd","_BOOT_ID":"2f1b03c3e2104787adb361b0dfd671fc","_SOURCE_MONOTONIC_TIMESTAMP":"1337051914","SYSLOG_IDENTIFIER":"kernel","MESSAGE":"[UFW AUDIT] IN=wlp2s0 OUT= MAC= SRC=172.217.26.3 DST=10.0.1.20 LEN=52 TOS=0x00 PREC=0x00 TTL=121 ID=18904 PROTO=TCP SPT=80 DPT=38848 WINDOW=240 RES=0x00 ACK URGP=0 "}

tinysnitch's People

Contributors

atsuya avatar

Watchers

James Cloos 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.