GithubHelp home page GithubHelp logo

idealwebsolutions / tunnel-fingerprint-microservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 8 KB

Simple microservice to detect generic tunneling protocols like OpenVPN, Wireguard or older protocols like IPSec from a single TCP connection. Additionally checks for Tor as a fallback.

Dockerfile 4.56% Python 95.44%

tunnel-fingerprint-microservice's Introduction

tunnel-fingerprint-microservice

Simple microservice to detect generic tunneling protocols like OpenVPN, Wireguard or older protocols like IPSec from a single TCP connection. Additionally checks for Tor as a fallback.

Usage

Requires p0f3 to be installed and running as a daemon with a named unix socket. See p0f instructions for details.

Sample non-docker install

git clone https://github.com/idealwebsolutions/tunnel-fingerprint-microservice
cd tunnel-fingerprint-microservice
pip install pipenv gunicorn
pipenv shell
pipenv install
gunicorn -b 0.0.0.0:8080 main:app

Sample docker install (recommended)

docker pull https://github.com/idealwebsolutions/tunnel-fingerprint-microservice
docker build -t "tunnel-fingerprint-microservice" .
docker run -d --name="fingerprint-microservice" \
 -v /path/to/named/p0f/socket:/var/run/ -p 8080:80 tunnel-fingerprint-microservice

API

/fingerprint?ip=MY.IP.V4.ADDRESS

Takes in a valid IPv4 address and returns two fields indicating if a VPN or Tor was identified.

{
    "is_vpn": True,
    "is_tor": False
}

Support

Use with caution, false positives are common. Used detection methods rely on specific MTU values and guesses based on OS and software stack signature mismatches; this is not a reliable method due to wide array of configurations out there and the ability to spoof the user-agent header. However with some refinement and testing, it may cover a good portion of generic configurations out there.

Tested VPN services

  • Mullvad (OpenVPN and Wireguard)
  • ProtonVPN

tunnel-fingerprint-microservice's People

Contributors

idealwebsolutions avatar

Watchers

 avatar  avatar

Forkers

bizfreak22

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.